add -fpic to CC flags when we build libbusybox (14% smaller .so)
This commit is contained in:
parent
52a4388d95
commit
8d82cf72c9
@ -56,6 +56,12 @@ ifeq ($(CONFIG_DEBUG),y)
|
|||||||
CFLAGS += $(call cc-option,-g)
|
CFLAGS += $(call cc-option,-g)
|
||||||
endif
|
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)
|
ifeq ($(CONFIG_STATIC),y)
|
||||||
LDFLAGS += -static
|
LDFLAGS += -static
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user