void-packages/srcpkgs/ponyc/patches/fix-pie.patch

12 lines
467 B
Diff

--- Makefile.orig 2017-03-30 18:27:39.852065849 +0200
+++ Makefile 2017-03-30 18:28:08.953702029 +0200
@@ -81,7 +81,7 @@
LIB_EXT ?= a
BUILD_FLAGS = -march=$(arch) -mtune=$(tune) -Werror -Wconversion \
-Wno-sign-conversion -Wextra -Wall
-LINKER_FLAGS = -march=$(arch) -mtune=$(tune)
+LINKER_FLAGS = -march=$(arch) -mtune=$(tune) $(LDFLAGS)
AR_FLAGS ?= rcs
ALL_CFLAGS = -std=gnu11 -fexceptions \
-DPONY_VERSION=\"$(tag)\" -DLLVM_VERSION=\"$(llvm_version)\" \