From e036d9a77f66ac90eec173be573bceeff48b9116 Mon Sep 17 00:00:00 2001 From: aafemt Date: Wed, 28 Dec 2005 06:58:28 +0000 Subject: [PATCH] Strip executables in prod build --- builds/posix/make.defaults | 8 +++++++- builds/posix/make.rules | 9 +-------- builds/posix/prefix.mingw | 3 ++- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/builds/posix/make.defaults b/builds/posix/make.defaults index df7ffbdf75..9404f384a1 100755 --- a/builds/posix/make.defaults +++ b/builds/posix/make.defaults @@ -26,7 +26,7 @@ # Contributor(s): # # -# $Id: make.defaults,v 1.43 2005-12-18 17:56:43 alexpeshkoff Exp $ +# $Id: make.defaults,v 1.44 2005-12-28 06:58:28 aafemt Exp $ # @@ -74,6 +74,12 @@ GEN_SRC=$(OBJ) RealFirebirdPath = @NEW_FIREBIRD_DIR@ +#____________________________________________________________________________ + +IsProdTypeBuild = @PROD_BUILD_FLG@ + # If this is defined then we are building a production + # release with debug and optimization + FirebirdInstallPrefix = @prefix@ CpuType=@CPU_TYPE@ diff --git a/builds/posix/make.rules b/builds/posix/make.rules index e7c3999212..f350425b9d 100644 --- a/builds/posix/make.rules +++ b/builds/posix/make.rules @@ -26,18 +26,11 @@ # Contributor(s): # # -# $Id: make.rules,v 1.27 2005-07-22 10:26:16 aafemt Exp $ +# $Id: make.rules,v 1.28 2005-12-28 06:58:28 aafemt Exp $ # #____________________________________________________________________________ -IsProdTypeBuild = @PROD_BUILD_FLG@ - # If this is defined then we are building a production - # release with debug and optimization - - -#____________________________________________________________________________ - # Please don't use compiler/platform specific flags here - nmcc 02-Nov-2002 CFLAGS:= $(CFLAGS) -I$(SRC_ROOT)/include/gen -I$(SRC_ROOT)/include -I$(SRC_ROOT)/vulcan -I$(ROOT)/extern/icu/source/common -I$(ROOT)/extern/icu/source/i18n -DNAMESPACE=Vulcan diff --git a/builds/posix/prefix.mingw b/builds/posix/prefix.mingw index 9a87d9deeb..e97311bd64 100644 --- a/builds/posix/prefix.mingw +++ b/builds/posix/prefix.mingw @@ -35,7 +35,8 @@ LIB_LINK_OPTIONS+=-Wl,--enable-stdcall-fixup # Strip symbols from release versions to decrease size ifeq ($(IsProdTypeBuild),Y) -LINK_OPTS += -Wl,-s +LINK_OPTS+=-Wl,-s +LIB_LINK_OPTIONS+=-Wl,-s endif # Generation of fbclient_ms.lib LIB_LINK_IMPLIB:=-Wl,--out-implib,firebird/lib/fbclient_ms.lib