History

build: strip: unify win32 and use the configured $STRIP

- 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.

Avi Halachmi (:avih) committed 10 years ago

Commit 5a0ca531 parent 35b7bf91 file · +4 −2Browse files

Unified · Split

Makefile+4−2
@@ -24,7 +24,6 @@ LINK_LIBTCC = · 23 unmodified lines
2424 LIBS =
2525
2626 ifdef CONFIG_WIN32
27− STRIP_BINARIES = yes
2827 LIBTCC = libtcc.dll
2928 else
3029 LIBS=-lm
@@ -228,7 +227,10 @@ else · 197 unmodified lines
228227 endif
229228
230229 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
232234
233235 ifndef CONFIG_WIN32
234236 install: $(PROGS) $(TCCLIBS) $(TCCDOCS)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t