olsrd: hotplug: optimize execution-speed and simplify using already existing GLOBAL...
[feed/routing.git] / batman-adv / patches / 0001-batctl-Add-CFLAGS-to-the-linker-step.patch
1 From 2c7bfe1299efa97438814bf6826a8f7ab3bc0b16 Mon Sep 17 00:00:00 2001
2 From: Sven Eckelmann <sven@narfation.org>
3 Date: Tue, 7 May 2013 14:51:02 +0200
4 Subject: [PATCH] batctl: Add CFLAGS to the linker step
5
6 The GCC manual states for different parameters that the options for compilation
7 must also be used when linking. The options for compilation are stored in
8 CFLAGS and added to LINK.o to fix the behavior.
9
10 Option which need this are for example -fPIC/-fPIE or -flto.
11
12 Signed-off-by: Sven Eckelmann <sven@narfation.org>
13 Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
14 ---
15 Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/Makefile b/Makefile
19 index 311e70e..233f453 100755
20 --- a/Makefile
21 +++ b/Makefile
22 @@ -53,7 +53,7 @@ RM ?= rm -f
23 INSTALL ?= install
24 MKDIR ?= mkdir -p
25 COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
26 -LINK.o = $(Q_LD)$(CC) $(LDFLAGS) $(TARGET_ARCH)
27 +LINK.o = $(Q_LD)$(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH)
28
29 # standard install paths
30 PREFIX = /usr/local
31 --
32 1.7.10.4
33