projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52a4388
)
add -fpic to CC flags when we build libbusybox (14% smaller .so)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 11 Oct 2007 10:02:52 +0000
(10:02 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 11 Oct 2007 10:02:52 +0000
(10:02 -0000)
Makefile.flags
patch
|
blob
|
history
diff --git
a/Makefile.flags
b/Makefile.flags
index 529491557eed11d884b148c9f3c582bba606d0bf..243f095e2eadf74805dbef06e1d8bc96ad5fc3cc 100644
(file)
--- 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