← Commit list

8d82cf72c

Denis Vlasenko
Denis Vlasenko
2007-10-11
FAILED Duration: 13s

Subject

add -fpic to CC flags when we build libbusybox (14% smaller .so)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

Makefile.flags+6 -0
@@ -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