summaryrefslogtreecommitdiff
path: root/package/busybox
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2012-03-24 12:07:28 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-03-24 12:07:28 +0100
commitac46e350e174e78a55a348eda775665ae0eb3277 (patch)
tree5574ba5e9a7108554683edb25bcd4b99599b8fa7 /package/busybox
parent89aa2adc650176b493075e1d8e64f1b6cc635d90 (diff)
update gcc, glibc and fix build breakage
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/Makefile3
-rw-r--r--package/busybox/patches/009-extra-flags.patch17
2 files changed, 19 insertions, 1 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 0f305065e..65f7a95ef 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -9,6 +9,7 @@ PKG_RELEASE:= 1
PKG_MD5SUM:= 9c0cae5a0379228e7b55e5b29528df8e
PKG_DESCR:= Core utilities for embedded systems
PKG_SECTION:= base
+PKG_BUILDDEP:= libtirpc
PKG_URL:= http://www.busybox.net/
PKG_SITES:= http://www.busybox.net/downloads/
@@ -38,7 +39,7 @@ BB_MAKE_FLAGS:= V=1 IPKG_ARCH="${CPU_ARCH}" ARCH="${ARCH}" GCC_HONOUR_COPTS=s \
HOSTCC="${CC_FOR_BUILD}" HOSTCFLAGS="$(CFLAGS_FOR_BUILD)" \
-C ${WRKBUILD}
ifneq (${ADK_NATIVE},y)
-BB_MAKE_FLAGS+= CROSS_COMPILE="$(TARGET_CROSS)"
+BB_MAKE_FLAGS+= CROSS_COMPILE="$(TARGET_CROSS)" EXTRA_LDFLAGS='-ltirpc' EXTRA_CPPFLAGS="-I$(STAGING_DIR)/usr/include/tirpc"
endif
# XXX: Although this looks like all new symbols are enabled when 'make oldconfig' runs, they're not.
diff --git a/package/busybox/patches/009-extra-flags.patch b/package/busybox/patches/009-extra-flags.patch
new file mode 100644
index 000000000..f440d4380
--- /dev/null
+++ b/package/busybox/patches/009-extra-flags.patch
@@ -0,0 +1,17 @@
+diff -Nur busybox-1.19.4.orig/Makefile busybox-1.19.4/Makefile
+--- busybox-1.19.4.orig/Makefile 2012-02-04 20:34:24.000000000 +0100
++++ busybox-1.19.4/Makefile 2012-03-22 19:17:49.099007985 +0100
+@@ -318,10 +318,10 @@
+ CFLAGS := $(CFLAGS)
+ # Added only to final link stage of busybox binary
+ CFLAGS_busybox := $(CFLAGS_busybox)
+-CPPFLAGS := $(CPPFLAGS)
++CPPFLAGS := $(CPPFLAGS) $(EXTRA_CPPFLAGS)
+ AFLAGS := $(AFLAGS)
+-LDFLAGS := $(LDFLAGS)
+-LDLIBS :=
++LDFLAGS := $(LDFLAGS) $(EXTRA_LDFLAGS)
++LDLIBS := tirpc
+
+ # Read KERNELRELEASE from .kernelrelease (if it exists)
+ KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null)