Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 529491557..243f095e2 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -56,6 +56,12 @@ ifeq ($(CONFIG_DEBUG),y)
CFLAGS += $(call cc-option,-g)
endif
+# on i386: 14% smaller libbusybox.so
+# (code itself is 9% bigger, we save on relocs/PLT/GOT)
+ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y)
+CFLAGS += -fpic
+endif
+
ifeq ($(CONFIG_STATIC),y)
LDFLAGS += -static
endif