aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-03 01:55:22 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-03 01:55:22 +0000
commit5463e9265733f1c86147fe3788023d6bf7108da5 (patch)
tree4e0a35303e3650530621ba2ed2fbfd607ce7bf39 /package/busybox
parente4e63b9c1b93252bb853720bf7b8882923d1aa07 (diff)
downloadupstream-5463e9265733f1c86147fe3788023d6bf7108da5.tar.gz
upstream-5463e9265733f1c86147fe3788023d6bf7108da5.tar.bz2
upstream-5463e9265733f1c86147fe3788023d6bf7108da5.zip
busybox: only add the librpc build dependency for uclibc (#8864)
SVN-Revision: 26429
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/Config.in4
-rw-r--r--package/busybox/Makefile4
2 files changed, 6 insertions, 2 deletions
diff --git a/package/busybox/Config.in b/package/busybox/Config.in
index 8353474bcd..7c643e50d3 100644
--- a/package/busybox/Config.in
+++ b/package/busybox/Config.in
@@ -19,6 +19,10 @@ config BUSYBOX_CONFIG_HUSH
default y if NOMMU
default n if !NOMMU
+config BUSYBOX_USE_LIBRPC
+ depends USE_UCLIBC
+ default y if BUSYBOX_CONFIG_FEATURE_HAVE_RPC
+
source "package/busybox/config/Config.in"
endmenu
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index 460d28d2ef..08acc37208 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -17,7 +17,7 @@ PKG_SOURCE_URL:=http://www.busybox.net/downloads \
http://distfiles.gentoo.org/distfiles/
PKG_MD5SUM:=a2ce1a951571da8c6e0eaf75b1acef60
-PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_FEATURE_HAVE_RPC:librpc
+PKG_BUILD_DEPENDS:=BUSYBOX_USE_LIBRPC:librpc
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
@@ -66,7 +66,7 @@ ifdef CONFIG_GCC_VERSION_LLVM
endif
LDLIBS:=m crypt
-ifdef CONFIG_BUSYBOX_CONFIG_FEATURE_HAVE_RPC
+ifdef CONFIG_BUSYBOX_USE_LIBRPC
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
export LDFLAGS=$(TARGET_LDFLAGS)
LDLIBS += rpc