1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Strip release binaries built with clang.

This commit is contained in:
Bartosz Taudul 2021-01-26 22:52:08 +01:00
parent 57ca6112b8
commit 9ae508218e
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@ ARCH := $(shell uname -m)
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0)) ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
CFLAGS += -s CFLAGS += -s
else
LDFLAGS := -s
endif endif
ifeq ($(ARCH),aarch64) ifeq ($(ARCH),aarch64)

View File

@ -55,10 +55,10 @@ $(OBJDIR)/%.d : %.m
ifeq (yes,$(SHARED_LIBRARY)) ifeq (yes,$(SHARED_LIBRARY))
$(IMAGE): $(OBJ) $(OBJ2) $(IMAGE): $(OBJ) $(OBJ2)
$(CXX) $(CXXFLAGS) $(DEFINES) $(OBJ) $(OBJ2) $(LIBS) -shared -o $@ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(DEFINES) $(OBJ) $(OBJ2) $(LIBS) -shared -o $@
else else
$(IMAGE): $(OBJ) $(OBJ2) $(OBJ3) $(IMAGE): $(OBJ) $(OBJ2) $(OBJ3)
$(CXX) $(CXXFLAGS) $(DEFINES) $(OBJ) $(OBJ2) $(OBJ3) $(LIBS) -o $@ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(DEFINES) $(OBJ) $(OBJ2) $(OBJ3) $(LIBS) -o $@
endif endif
ifneq "$(MAKECMDGOALS)" "clean" ifneq "$(MAKECMDGOALS)" "clean"