svn commit: trunk/busybox
vda at busybox.net
vda at busybox.net
Thu Oct 11 10:02:53 UTC 2007
Author: vda
Date: 2007-10-11 03:02:52 -0700 (Thu, 11 Oct 2007)
New Revision: 20218
Log:
add -fpic to CC flags when we build libbusybox (14% smaller .so)
Modified:
trunk/busybox/Makefile.flags
Changeset:
Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags 2007-10-10 20:53:41 UTC (rev 20217)
+++ trunk/busybox/Makefile.flags 2007-10-11 10:02:52 UTC (rev 20218)
@@ -56,6 +56,12 @@
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
More information about the busybox-cvs
mailing list