aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-02-22 10:49:32 +0000
committerRon Yorston <rmy@pobox.com>2016-02-22 10:54:12 +0000
commit23db91691674e8621870c382581999a61eb0d0bf (patch)
treec8750f226dc345601fc6984cfd5c8d002d138033
parent62121bd45c163ed23fa7a06b4ec37f2d6f93d6e3 (diff)
downloadbusybox-w32-23db91691674e8621870c382581999a61eb0d0bf.tar.gz
busybox-w32-23db91691674e8621870c382581999a61eb0d0bf.tar.bz2
busybox-w32-23db91691674e8621870c382581999a61eb0d0bf.zip
mingw: add -fno-ident to CFLAGS
Without this flag a compiler version string is injected into each binary object. The linker doesn't deduplicate the strings, leading to bloat. This enhancement was suggested by Viktor Szakats. It saves 13KB.
-rw-r--r--Makefile.flags3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 28034cb07..6b25632a0 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -125,8 +125,7 @@ export SYSROOT=$(CONFIG_SYSROOT)
125endif 125endif
126 126
127ifeq ($(CONFIG_PLATFORM_MINGW32),y) 127ifeq ($(CONFIG_PLATFORM_MINGW32),y)
128# These defintions are not strictly needed, but they help shut up fnmatch.c warnings 128CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident
129CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy
130EXEEXT = .exe 129EXEEXT = .exe
131LDLIBS += userenv ws2_32 130LDLIBS += userenv ws2_32
132endif 131endif