From 3ef9b6969c8ea5c6ff0e3cf5e40a4185a57999d3 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 5 Apr 2010 13:29:01 +0200 Subject: [PATCH] busybox: respect BR2_PREFER_STATIC_LIB Build static version if requested in BR config. Signed-off-by: Peter Korsgaard --- package/busybox/busybox.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 7f2f171065..cc2097e189 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 -- 2.30.2