summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-04-05 11:29:01 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-04-05 11:29:01 (GMT)
commit3ef9b6969c8ea5c6ff0e3cf5e40a4185a57999d3 (patch)
tree75dde83a7ae43b31c05ed6602ae8178a525dfe54
parent266fa65afb20bf93b813d96421dce537a4dd2742 (diff)
downloadbuildroot-3ef9b6969c8ea5c6ff0e3cf5e40a4185a57999d3.tar.gz
buildroot-3ef9b6969c8ea5c6ff0e3cf5e40a4185a57999d3.tar.bz2
busybox: respect BR2_PREFER_STATIC_LIB
Build static version if requested in BR config. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/busybox/busybox.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 7f2f171..cc2097e 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -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