aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2008-10-26 21:09:32 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2008-10-26 21:17:32 +0100
commit0b1a3d8e002ff7cae422272b0ce0a4ba065c22e5 (patch)
tree6251c905677f1984e788e46cb6141a4a90c0bd24
parent5d5a9470b08b83627186224edd491a81bbae7bdb (diff)
downloadopenembedded-holger/random-fixes.tar.gz
busybox.inc : Make busybox honor our LDFLAGSholger/random-fixes
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.
-rw-r--r--packages/busybox/busybox.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/busybox/busybox.inc b/packages/busybox/busybox.inc
index 63f839e246..e377406421 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}/