- There's no need to force STRIP_BINARIES on windows since --enable-strip (at configure) already does exactly that, if one wants to. - Use the contigured $STRIP instead of the native 'strip', useful when cross building tcc. - 'make install-strip' now also strips libtcc.dll on windows (it already does so now with --enable-strip, and previously it always stripped it). Summary of current strip options for all platforms: - configure --enable strip -> 'install -s' for the binaries. - make install-strip: installs and then configured $STRIP the binaries. - Otherwise -> no stripping.
Unified · Split
| @@ -24,7 +24,6 @@ LINK_LIBTCC = · 23 unmodified lines | |||
| 24 | LIBS = | 24 | LIBS = |
| 25 | 25 | ||
| 26 | ifdef CONFIG_WIN32 | 26 | ifdef CONFIG_WIN32 |
| 27 | STRIP_BINARIES = yes | ||
| 28 | LIBTCC = libtcc.dll | 27 | LIBTCC = libtcc.dll |
| 29 | else | 28 | else |
| 30 | LIBS=-lm | 29 | LIBS=-lm |
| @@ -228,7 +227,10 @@ else · 197 unmodified lines | |||
| 228 | endif | 227 | endif |
| 229 | 228 | ||
| 230 | install-strip: install | 229 | install-strip: install |
| 231 | strip $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG)) | 230 | $(STRIP) $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG)) |
| 231 | ifdef CONFIG_WIN32 | ||
| 232 | $(STRIP) "$(bindir)/$(LIBTCC)" | ||
| 233 | endif | ||
| 232 | 234 | ||
| 233 | ifndef CONFIG_WIN32 | 235 | ifndef CONFIG_WIN32 |
| 234 | install: $(PROGS) $(TCCLIBS) $(TCCDOCS) | 236 | install: $(PROGS) $(TCCLIBS) $(TCCDOCS) |