[oe-commits] Holger Hans Peter Freyther : busybox.inc : Make busybox honor our LDFLAGS
GIT User account
git at amethyst.openembedded.net
Mon Oct 27 13:55:14 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 617783573618914243be5b6c2502b1eb497be98a
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=617783573618914243be5b6c2502b1eb497be98a
Author: Holger Hans Peter Freyther <zecke at selfish.org>
Date: Sun Oct 26 21:09:32 2008 +0100
busybox.inc : Make busybox honor our LDFLAGS
We want --hash-style=gnu to be honored, do not unset LDFLAGS
force gcc as linker so -Wl does not look like a bad option.
---
packages/busybox/busybox.inc | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/packages/busybox/busybox.inc b/packages/busybox/busybox.inc
index 63f839e..e377406 100644
--- a/packages/busybox/busybox.inc
+++ b/packages/busybox/busybox.inc
@@ -50,10 +50,13 @@ CONFFILES_${PN} = "${sysconfdir}/syslog.conf"
# This disables the syslog startup links in slugos (see slugos-init)
INITSCRIPT_PARAMS_${PN}_slugos = "start 20 ."
+# Use gcc for linking so LDFLAGS actually makes sense
+LD = "${CC} -nostdlib"
+
inherit cml1 update-rc.d
do_compile() {
- unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ unset CFLAGS CPPFLAGS CXXFLAGS
base_do_compile
}
@@ -65,7 +68,7 @@ do_install () {
elif [ "${layout_prefix}" != "/usr" ]; then
echo "warning, busybox.links will lose with this prefix"
fi
- unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ unset CFLAGS CPPFLAGS CXXFLAGS
install -d ${D}${sysconfdir}/init.d
oe_runmake "PREFIX=${D}" install
cp -pPR ${S}/_install/* ${D}/
More information about the Openembedded-commits
mailing list