diff options
author | Ron Yorston <rmy@pobox.com> | 2016-02-22 10:49:32 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-02-22 10:54:12 +0000 |
commit | 23db91691674e8621870c382581999a61eb0d0bf (patch) | |
tree | c8750f226dc345601fc6984cfd5c8d002d138033 | |
parent | 62121bd45c163ed23fa7a06b4ec37f2d6f93d6e3 (diff) | |
download | busybox-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.flags | 3 |
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) | |||
125 | endif | 125 | endif |
126 | 126 | ||
127 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) | 127 | ifeq ($(CONFIG_PLATFORM_MINGW32),y) |
128 | # These defintions are not strictly needed, but they help shut up fnmatch.c warnings | 128 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident |
129 | CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy | ||
130 | EXEEXT = .exe | 129 | EXEEXT = .exe |
131 | LDLIBS += userenv ws2_32 | 130 | LDLIBS += userenv ws2_32 |
132 | endif | 131 | endif |