* [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS
@ 2013-05-08 7:21 Sven Eckelmann
2013-05-08 7:21 ` [B.A.T.M.A.N.] [Bonus-PATCH 11/9] batman-adv-devel: Remove unused parameters from MAKE_BATCTL_ARGS Sven Eckelmann
2013-05-12 7:53 ` [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS Marek Lindner
0 siblings, 2 replies; 4+ messages in thread
From: Sven Eckelmann @ 2013-05-08 7:21 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Sven Eckelmann
The batctl makefile has CFLAGS which change the behavior of the compiler. This
includes important things like the C-dialect used or whether the compiler can
ignore aliasing problems during the optimization step.
The OpenWRT build environment should not overwrite these settings without a
good reason. Most of these reasons can probably directly be fixed upstream.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
batman-adv-devel/Makefile | 3 ---
1 file changed, 3 deletions(-)
diff --git a/batman-adv-devel/Makefile b/batman-adv-devel/Makefile
index cad95c6..fb2c24a 100644
--- a/batman-adv-devel/Makefile
+++ b/batman-adv-devel/Makefile
@@ -65,9 +65,6 @@ MAKE_BATMAN_ADV_ARGS += \
REVISION="$(PKG_BATMAN_SHORTREV)" all
MAKE_BATCTL_ARGS += \
- CFLAGS="$(TARGET_CFLAGS)" \
- CCFLAGS="$(TARGET_CFLAGS)" \
- OFLAGS="$(TARGET_CFLAGS)" \
REVISION="$(PKG_BATCTL_SHORTREV)" \
CC="$(TARGET_CC)" \
NODEBUG=1 \
--
1.8.2.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [B.A.T.M.A.N.] [Bonus-PATCH 11/9] batman-adv-devel: Remove unused parameters from MAKE_BATCTL_ARGS
2013-05-08 7:21 [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS Sven Eckelmann
@ 2013-05-08 7:21 ` Sven Eckelmann
2013-05-12 7:56 ` Marek Lindner
2013-05-12 7:53 ` [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS Marek Lindner
1 sibling, 1 reply; 4+ messages in thread
From: Sven Eckelmann @ 2013-05-08 7:21 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Sven Eckelmann
The NODEBUG, UNAME and STRIP parameter aren't used in batctl's Makefile.
Removing them should be safe.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
batman-adv-devel/Makefile | 3 ---
1 file changed, 3 deletions(-)
diff --git a/batman-adv-devel/Makefile b/batman-adv-devel/Makefile
index fb2c24a..4689181 100644
--- a/batman-adv-devel/Makefile
+++ b/batman-adv-devel/Makefile
@@ -67,10 +67,7 @@ MAKE_BATMAN_ADV_ARGS += \
MAKE_BATCTL_ARGS += \
REVISION="$(PKG_BATCTL_SHORTREV)" \
CC="$(TARGET_CC)" \
- NODEBUG=1 \
- UNAME="Linux" \
DESTDIR="$(PKG_INSTALL_DIR)" \
- STRIP="/bin/true" \
batctl install
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
--
1.8.2.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS
2013-05-08 7:21 [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS Sven Eckelmann
2013-05-08 7:21 ` [B.A.T.M.A.N.] [Bonus-PATCH 11/9] batman-adv-devel: Remove unused parameters from MAKE_BATCTL_ARGS Sven Eckelmann
@ 2013-05-12 7:53 ` Marek Lindner
1 sibling, 0 replies; 4+ messages in thread
From: Marek Lindner @ 2013-05-12 7:53 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Sven Eckelmann
On Wednesday, May 08, 2013 15:21:25 Sven Eckelmann wrote:
> The batctl makefile has CFLAGS which change the behavior of the compiler.
> This includes important things like the C-dialect used or whether the
> compiler can ignore aliasing problems during the optimization step.
>
> The OpenWRT build environment should not overwrite these settings without a
> good reason. Most of these reasons can probably directly be fixed upstream.
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> batman-adv-devel/Makefile | 3 ---
> 1 file changed, 3 deletions(-)
Applied in revision 110ca73.
Thanks,
Marek
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-12 7:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-08 7:21 [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS Sven Eckelmann
2013-05-08 7:21 ` [B.A.T.M.A.N.] [Bonus-PATCH 11/9] batman-adv-devel: Remove unused parameters from MAKE_BATCTL_ARGS Sven Eckelmann
2013-05-12 7:56 ` Marek Lindner
2013-05-12 7:53 ` [B.A.T.M.A.N.] [Bonus-PATCH 10/9] batman-adv-devel: Don't overwrite batctl's CFLAGS Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox