busybox: only add the librpc build dependency for uclibc (#8864)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Apr 2011 01:55:22 +0000 (01:55 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Apr 2011 01:55:22 +0000 (01:55 +0000)
SVN-Revision: 26429

package/busybox/Config.in
package/busybox/Makefile

index 8353474bcdb484d4467eb44a182318a8901ff6f7..7c643e50d3fc04c17fa9f523b502ea35dff47dff 100644 (file)
@@ -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
index 460d28d2efc6d57b85b08535b1f5179f5bfe628b..08acc37208a184b987acd09301245bc539e97087 100644 (file)
@@ -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