public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Sven Eckelmann <sven@narfation.org>
Subject: [B.A.T.M.A.N.] [PATCH 7/9] batman-adv-devel: Add missing TARGET_* flags to batctl compile
Date: Tue,  7 May 2013 14:51:07 +0200	[thread overview]
Message-ID: <1367931069-7177-8-git-send-email-sven@narfation.org> (raw)
In-Reply-To: <1367931069-7177-1-git-send-email-sven@narfation.org>

The compilation step of batctl completely dropped the TARGET_CFLAGS,
TARGET_CPPFLAGS and TARGET_LDFLAGS and therefore weren't compiled and linked
with the flags given by the OpenWRT build environment.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 batman-adv-devel/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/batman-adv-devel/Makefile b/batman-adv-devel/Makefile
index 0958f38..b9e2650 100644
--- a/batman-adv-devel/Makefile
+++ b/batman-adv-devel/Makefile
@@ -85,7 +85,9 @@ $(eval $(call Download,batctl))
 
 BATCTL_EXTRACT = tar xzf "$(DL_DIR)/$(PKG_BATCTL_FNAME)" -C "$(BUILD_DIR)/$(PKG_NAME)"
 BATCTL_PATCH = $(call Build/DoPatch,"$(PKG_BATCTL_BUILD_DIR)","$(PATCH_DIR)","*batctl*")
-BATCTL_BUILD = $(MAKE) -C $(PKG_BATCTL_BUILD_DIR) $(MAKE_BATCTL_ARGS)
+BATCTL_BUILD =	CPPFLAGS="$(TARGET_CPPFLAGS)" CFLAGS="$(TARGET_CFLAGS)" \
+		LDFLAGS="$(TARGET_LDFLAGS)" \
+		$(MAKE) -C $(PKG_BATCTL_BUILD_DIR) $(MAKE_BATCTL_ARGS)
 BATCTL_INSTALL = $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/batctl $(1)/usr/sbin/
 endif
 
-- 
1.8.2.1


  parent reply	other threads:[~2013-05-07 12:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07 12:51 [B.A.T.M.A.N.] [PATCH 0/9] Adding size relevant build options Sven Eckelmann
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 1/9] alfred: Add CFLAGS to the linker step Sven Eckelmann
2013-05-14  9:41   ` Simon Wunderlich
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 2/9] batctl: " Sven Eckelmann
2013-05-08  5:04   ` Marek Lindner
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 3/9] batmand: " Sven Eckelmann
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 4/9] vis: " Sven Eckelmann
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 5/9] alfred: Use section garbage collection to reduce binary size Sven Eckelmann
2013-05-14  9:44   ` Simon Wunderlich
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 6/9] alfred: Enable Link-time optimization Sven Eckelmann
2013-05-14  9:45   ` Simon Wunderlich
2013-05-07 12:51 ` Sven Eckelmann [this message]
2013-05-08  5:11   ` [B.A.T.M.A.N.] [PATCH 7/9] batman-adv-devel: Add missing TARGET_* flags to batctl compile Marek Lindner
2013-05-08  7:24     ` Sven Eckelmann
2013-05-12  7:52       ` Marek Lindner
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 8/9] batman-adv-devel: Use section garbage collection to reduce binary size Sven Eckelmann
2013-05-12  8:20   ` Marek Lindner
2013-05-07 12:51 ` [B.A.T.M.A.N.] [PATCH 5/9] batman-adv-devel: Enable Link-time optimization Sven Eckelmann
2013-05-12  8:21   ` Marek Lindner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367931069-7177-8-git-send-email-sven@narfation.org \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox