Changeset 25507


Ignore:
Timestamp:
2011-02-13T03:52:34+01:00 (5 years ago)
Author:
nbd
Message:

busybox: fix compile with librpc if necessary (required by nfs mount support)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/busybox/Makefile

    r25146 r25507  
    1818PKG_MD5SUM:=a2ce1a951571da8c6e0eaf75b1acef60 
    1919 
     20PKG_BUILD_DEPENDS:=librpc 
    2021PKG_BUILD_PARALLEL:=1 
    2122 
     
    3738  TITLE:=Core utilities for embedded Linux 
    3839  URL:=http://busybox.net/ 
     40  DEPENDS:=+BUSYBOX_CONFIG_FEATURE_HAVE_RPC&&USE_UCLIBC:librpc 
    3941  MENU:=1 
    4042endef 
     
    6466endif 
    6567 
     68LDLIBS:=m crypt 
     69ifdef CONFIG_BUSYBOX_CONFIG_FEATURE_HAVE_RPC 
     70  TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include 
     71  export LDFLAGS=$(TARGET_LDFLAGS) 
     72  LDLIBS += rpc 
     73endif 
     74 
    6675define Build/Compile 
    6776        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ 
     
    7281                ARCH="$(ARCH)" \ 
    7382                SKIP_STRIP=y \ 
     83                LDLIBS="$(LDLIBS)" \ 
    7484                all 
    7585        rm -rf $(PKG_INSTALL_DIR) 
     
    8191                ARCH="$(ARCH)" \ 
    8292                CONFIG_PREFIX="$(PKG_INSTALL_DIR)" \ 
     93                LDLIBS="$(LDLIBS)" \ 
    8394                install 
    8495endef 
Note: See TracChangeset for help on using the changeset viewer.