summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2013-05-07 14:51:04 +0200
committerSven Eckelmann <sven@narfation.org>2016-03-10 20:02:06 +0100
commit7710cce42e8d63ea114056a4a140835d4a452933 (patch)
tree2dcd3f7d1e75d23142805c532a0b816b5a085772
parent99e3f5ccc819bac1ec82a7c609fb74536c1c8557 (diff)
downloadvis-main.tar.gz
vis: Add CFLAGS to the linker stepHEADmainecsv/fixes
The GCC manual states for different parameters that the options for compilation must also be used when linking. The options for compilation are stored in CFLAGS and added to LINK.o to fix the behavior. Option which need this are for example -fPIC/-fPIE or -flto. Signed-off-by: Sven Eckelmann <sven@narfation.org>
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c4220f5..0d49c7e 100755
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ RM ?= rm -f
INSTALL ?= install
MKDIR ?= mkdir -p
COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
-LINK.o = $(Q_LD)$(CC) $(LDFLAGS) $(TARGET_ARCH)
+LINK.o = $(Q_LD)$(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# standard install paths
PREFIX = /usr/local