[commits] [batmand] master: 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. (aeb6729)

postmaster at open-mesh.org postmaster at open-mesh.org
Sun Sep 15 17:49:37 CEST 2013


Repository : ssh://git@open-mesh.org/batmand

On branch  : master

>---------------------------------------------------------------

commit aeb6729d9637b519c5ae352a2b4aa9d4f07279c4
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sun Sep 15 17:39:17 2013 +0200

    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 at narfation.org>


>---------------------------------------------------------------

aeb6729d9637b519c5ae352a2b4aa9d4f07279c4
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 3205573..50d1fe8 100755
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,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



More information about the commits mailing list