diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-11-04 07:34:11 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-11-06 08:20:16 +0100 |
commit | 7266e7630d4785e6228fdc981e2ce560291d085d (patch) | |
tree | 96f38ef854ce24553dbd6c2c92c10e624ee7337e /package | |
parent | f1e4feed13e050de408dd78e32cf5772bd6343d1 (diff) | |
download | buildroot-novena-7266e7630d4785e6228fdc981e2ce560291d085d.tar.gz buildroot-novena-7266e7630d4785e6228fdc981e2ce560291d085d.zip |
busybox: add support to link against libtirpc when available
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r-- | package/busybox/busybox.mk | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 2fa1aa53b..549e150be 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -15,14 +15,29 @@ BUSYBOX_SOURCE = busybox-$(BUSYBOX_VERSION).tar.bz2 BUSYBOX_LICENSE = GPLv2 BUSYBOX_LICENSE_FILES = LICENSE +BUSYBOX_CFLAGS = \ + $(TARGET_CFLAGS) \ + -I$(LINUX_HEADERS_DIR)/include + +BUSYBOX_LDFLAGS = \ + $(TARGET_LDFLAGS) + +# Link against libtirpc if available so that we can leverage its RPC +# support for NFS mounting with Busybox +ifeq ($(BR2_PACKAGE_LIBTIRPC),y) +BUSYBOX_DEPENDENCIES += libtirpc +BUSYBOX_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/ +BUSYBOX_LDFLAGS += -ltirpc +endif + BUSYBOX_BUILD_CONFIG = $(BUSYBOX_DIR)/.config # Allows the build system to tweak CFLAGS -BUSYBOX_MAKE_ENV = $(TARGET_MAKE_ENV) CFLAGS="$(TARGET_CFLAGS) -I$(LINUX_HEADERS_DIR)/include" +BUSYBOX_MAKE_ENV = $(TARGET_MAKE_ENV) CFLAGS="$(BUSYBOX_CFLAGS)" BUSYBOX_MAKE_OPTS = \ CC="$(TARGET_CC)" \ ARCH=$(KERNEL_ARCH) \ PREFIX="$(TARGET_DIR)" \ - EXTRA_LDFLAGS="$(TARGET_LDFLAGS)" \ + EXTRA_LDFLAGS="$(BUSYBOX_LDFLAGS)" \ CROSS_COMPILE="$(TARGET_CROSS)" \ CONFIG_PREFIX="$(TARGET_DIR)" \ SKIP_STRIP=y |