busybox: respect BR2_PREFER_STATIC_LIB
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 5 Apr 2010 11:29:01 +0000 (13:29 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 5 Apr 2010 11:29:01 +0000 (13:29 +0200)
Build static version if requested in BR config.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/busybox/busybox.mk

index 7f2f1710656dc743262b5f7a5bd21b696c7d7ac0..cc2097e189f2a3d81a49892b900c2f740e4237db 100644 (file)
@@ -78,6 +78,11 @@ ifeq ($(BR2_INET_RPC),y)
 else
        $(SED) "s/^.*CONFIG_FEATURE_MOUNT_NFS.*/CONFIG_FEATURE_MOUNT_NFS=n/;" $(BUSYBOX_DIR)/.config
 endif
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+       $(SED) "s/^.*CONFIG_STATIC.*/CONFIG_STATIC=y/;" $(BUSYBOX_DIR)/.config
+else
+       $(SED) "s/^.*CONFIG_STATIC.*/CONFIG_STATIC=n/;" $(BUSYBOX_DIR)/.config
+endif
 ifeq ($(BR2_PACKAGE_BUSYBOX_SKELETON),y)
        # force mdev on
        $(SED) "s/^.*CONFIG_MDEV.*/CONFIG_MDEV=y/" $(BUSYBOX_DIR)/.config