Repository : ssh://git@open-mesh.org/batctl
On branch : master
commit b80d07fbf5fb8f0e3d6d5fc1b3ae45bdb72b3b79 Author: Sven Eckelmann sven@narfation.org Date: Tue May 7 14:51:02 2013 +0200
batctl: 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 Signed-off-by: Marek Lindner lindner_marek@yahoo.de
b80d07fbf5fb8f0e3d6d5fc1b3ae45bdb72b3b79 Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile index 61b24c6..1961298 100755 --- a/Makefile +++ b/Makefile @@ -53,7 +53,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