Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit c693d67778eca8a04c5611c9d43fac093c07badd Author: Sven Eckelmann sven@narfation.org Date: Tue May 7 14:51:01 2013 +0200
alfred: Add CFLAGS to the linker step
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
c693d67778eca8a04c5611c9d43fac093c07badd Makefile | 2 +- vis/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile index 268a156..aeee2e8 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,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 diff --git a/vis/Makefile b/vis/Makefile index 5ec0423..8585f9a 100644 --- a/vis/Makefile +++ b/vis/Makefile @@ -42,7 +42,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