From patchwork Thu Feb 13 17:44:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 3829 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=178.209.62.157; helo=s3.neomailbox.net; envelope-from=antonio@meshcoding.com; receiver=b.a.t.m.a.n@lists.open-mesh.org Received: from s3.neomailbox.net (s3.neomailbox.net [178.209.62.157]) by open-mesh.org (Postfix) with ESMTPS id AC4D660070A for ; Thu, 13 Feb 2014 18:45:47 +0100 (CET) Message-ID: <52FD0475.1040705@meshcoding.com> Date: Thu, 13 Feb 2014 18:44:21 +0100 From: Antonio Quartulli User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: The list for a Better Approach To Mobile Ad-hoc Networking , konstantin.pribluda@gmail.com References: In-Reply-To: X-Enigmail-Version: 1.6 OpenPGP: id=43FD7307 Subject: Re: [B.A.T.M.A.N.] Problem compiling batman for openwrt X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 17:45:49 -0000 On 13/02/14 15:15, Konstantin Pribluda wrote: > Hi all, > > I try to compile 2013.4 against trunk of openwrt, and habe problem > with batctl: Hi Konstantin, due to some CFLAGS problem (related to lto) batctl-2013.4.0 does not compile unless you apply the attached patch (you can save and put it in the patches folder within the batman-adv package). The new batman-adv/batctl-2014.0.0 already includes this fix. Cheers, 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.8.5.3