summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Riedmueller <s.riedmueller@phytec.de>2019-03-06 10:55:06 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-03-07 10:51:50 +0100
commitdaaf1fa9ccd965666e41111c763b8fba85057bdd (patch)
tree961373b7cb9ca4917c0f80bb0fb866a50f1beea7
parentc76b30704758c70b05c05f479e5dd95b80bb8c8f (diff)
downloadmeta-phytec-daaf1fa9ccd965666e41111c763b8fba85057bdd.tar.bz2
meta-phytec-daaf1fa9ccd965666e41111c763b8fba85057bdd.zip
barebox.inc: Fix build of barebox-targettools
Commit 0fa74db71bbf ("barebox.inc: fix build with binutils 2.28") overwrites LDFLAGS globally in the barebox recipes. So when building the barebox-targettools this leads to a "--no-dynamic-linker" linker flag. This makes sense for the barebox but not for the targettools as they run in linux. So move the setting of LDFLAGS from a recipe global context to the do_compile function. This way it is still available during barebox build but does not interfere the barebox-targettools build. Signed-off-by: Stefan Riedmueller <s.riedmueller@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--recipes-bsp/barebox/barebox.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc
index df2e0fb..728a602 100644
--- a/recipes-bsp/barebox/barebox.inc
+++ b/recipes-bsp/barebox/barebox.inc
@@ -20,7 +20,6 @@ inherit kconfig
# verbose build 0/1
VERBOSE_BUILD ?= "0"
EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc" V="${VERBOSE_BUILD}"'
-LDFLAGS = "--no-dynamic-linker"
B = "${WORKDIR}/build"
# name of the image created by barebox Makefile
@@ -40,6 +39,7 @@ do_configure_append() {
do_compile () {
unset CFLAGS
+ export LDFLAGS="--no-dynamic-linker"
oe_runmake all
}