From patchwork Tue May 7 12:51:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 2980 X-Patchwork-Delegate: onelektra@gmx.net Return-Path: Received: from v3-1039.vlinux.de (narfation.org [79.140.41.39]) by open-mesh.org (Postfix) with ESMTPS id 78E3E601595 for ; Tue, 7 May 2013 14:51:24 +0200 (CEST) Received: from sven-desktop.home.narfation.org (drsd-4dbd8aca.pool.mediaWays.net [77.189.138.202]) by v3-1039.vlinux.de (Postfix) with ESMTPSA id 20E681100D1; Tue, 7 May 2013 14:51:24 +0200 (CEST) From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 7 May 2013 14:51:04 +0200 Message-Id: <1367931069-7177-5-git-send-email-sven@narfation.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1367931069-7177-1-git-send-email-sven@narfation.org> References: <1367931069-7177-1-git-send-email-sven@narfation.org> Cc: Sven Eckelmann Subject: [B.A.T.M.A.N.] [PATCH 4/9] vis: Add CFLAGS to the linker step 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: Tue, 07 May 2013 12:51:24 -0000 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c4220f5..0d49c7e 100755 --- a/Makefile +++ b/Makefile @@ -43,7 +43,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