summaryrefslogtreecommitdiff
authorDenys Vlasenko <vda.linux@googlemail.com>2015-04-14 12:15:15 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2015-04-14 12:15:15 (GMT)
commite0ddb65cb234db6482d80febee1a63778f818db6 (patch)
treee2057d908f6fe6b73ce0469fb3df6ee188e9d5ef
parent7b729edd33aea5361e0740df800a1a0a1ff70f7f (diff)
downloadbusybox-e0ddb65cb234db6482d80febee1a63778f818db6.zip
busybox-e0ddb65cb234db6482d80febee1a63778f818db6.tar.gz
busybox-e0ddb65cb234db6482d80febee1a63778f818db6.tar.bz2
build system: make CONFIG_EXTRA_LDFLAGS go to LDFLAGS, not EXTRA_LDFLAGS
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rw-r--r--Makefile.flags2
-rwxr-xr-xexamples/android-build2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 307afa7..a1ed148 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -163,7 +163,7 @@ SKIP_STRIP = y
endif
ifneq ($(CONFIG_EXTRA_LDFLAGS),)
-EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))
+LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))
#"))
endif
diff --git a/examples/android-build b/examples/android-build
index 89f3b63..123ba96 100755
--- a/examples/android-build
+++ b/examples/android-build
@@ -29,4 +29,6 @@ else
LDLIBS="dl m c gcc"
fi
+# It's possible with newer version
+# you need to use CFLAGS_busybox instead of EXTRA_LDFLAGS below:
make EXTRA_LDFLAGS="$LDFLAGS" LDLIBS="$LDLIBS" "$@"