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
24LIBS =24LIBS =
25 25
26ifdef CONFIG_WIN3226ifdef CONFIG_WIN32
27 STRIP_BINARIES = yes
28 LIBTCC = libtcc.dll27 LIBTCC = libtcc.dll
29else28else
30 LIBS=-lm29 LIBS=-lm
@@ -228,7 +227,10 @@ else · 197 unmodified lines
228endif227endif
229 228
230install-strip: install229install-strip: install
231 strip $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG))230 $(STRIP) $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG))
231ifdef CONFIG_WIN32
232 $(STRIP) "$(bindir)/$(LIBTCC)"
233endif
232 234
233ifndef CONFIG_WIN32235ifndef CONFIG_WIN32
234install: $(PROGS) $(TCCLIBS) $(TCCDOCS)236install: $(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