From a96287cedca943643448a288ac30325cc261706e Mon Sep 17 00:00:00 2001 From: Marek Lindner Date: Wed, 31 Jul 2013 11:50:08 +0800 Subject: [PATCH] batman-adv: fix batctl compiler problems on mips Signed-off-by: Marek Lindner --- batman-adv/Makefile | 2 +- ...batctl-Add-CFLAGS-to-the-linker-step.patch | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 batman-adv/patches/0001-batctl-Add-CFLAGS-to-the-linker-step.patch diff --git a/batman-adv/Makefile b/batman-adv/Makefile index 977d180..6db66a6 100644 --- a/batman-adv/Makefile +++ b/batman-adv/Makefile @@ -12,7 +12,7 @@ PKG_NAME:=batman-adv PKG_VERSION:=2013.3.0 BATCTL_VERSION:=2013.3.0 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_MD5SUM:=d070c0879cd8fe8125315a4566fabd2d BATCTL_MD5SUM:=747535b0296f0013a6f99373a51d41fc diff --git a/batman-adv/patches/0001-batctl-Add-CFLAGS-to-the-linker-step.patch b/batman-adv/patches/0001-batctl-Add-CFLAGS-to-the-linker-step.patch new file mode 100644 index 0000000..492ae35 --- /dev/null +++ b/batman-adv/patches/0001-batctl-Add-CFLAGS-to-the-linker-step.patch @@ -0,0 +1,33 @@ +From 2c7bfe1299efa97438814bf6826a8f7ab3bc0b16 Mon Sep 17 00:00:00 2001 +From: Sven Eckelmann +Date: Tue, 7 May 2013 14:51:02 +0200 +Subject: [PATCH] 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 +Signed-off-by: Marek Lindner +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 311e70e..233f453 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 +-- +1.7.10.4 +