diff --git a/Makefile b/Makefile index 6e2472477393d0cfaf4e80280ccc434c063cebd7..2baf0d6ba2ac581bf0cda1ae630a44229893de7c 100644 --- a/Makefile +++ b/Makefile @@ -143,7 +143,15 @@ CXX = $(CXX_$(CONFIG)) LD = $(LD_$(CONFIG)) LDXX = $(LDXX_$(CONFIG)) AR = ar +ifeq ($(SYSTEM),Linux) STRIP = strip --strip-unneeded +else +ifeq ($(SYSTEM),Darwin) +STRIP = strip -x +else +STRIP = strip +endif +endif INSTALL = install RM = rm -f diff --git a/templates/Makefile.template b/templates/Makefile.template index 226bf07bb056596a83606bbf5cd9c66c2231b9ac..491f142142ea420f2aa69dfc6ba8c93a1d5222f9 100644 --- a/templates/Makefile.template +++ b/templates/Makefile.template @@ -160,7 +160,15 @@ CXX = $(CXX_$(CONFIG)) LD = $(LD_$(CONFIG)) LDXX = $(LDXX_$(CONFIG)) AR = ar +ifeq ($(SYSTEM),Linux) STRIP = strip --strip-unneeded +else +ifeq ($(SYSTEM),Darwin) +STRIP = strip -x +else +STRIP = strip +endif +endif INSTALL = install RM = rm -f