diff options
author | Mathias Bauer <mba@openoffice.org> | 2011-01-31 12:22:57 +0100 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2011-01-31 12:22:57 +0100 |
commit | c7b43187a1e80ca5c304997a641dc71645ad48ef (patch) | |
tree | efe1ce661c388731f382003233a7e834edcd2f14 /svx/Library_svxcore.mk | |
parent | cbbc928042e98fb35009a09b1a26205a026e5a13 (diff) |
CWS gnumake3: enable compiling without optimization
Diffstat (limited to 'svx/Library_svxcore.mk')
-rw-r--r-- | svx/Library_svxcore.mk | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/svx/Library_svxcore.mk b/svx/Library_svxcore.mk index 2aed7588e050..33f6ac03af5a 100644 --- a/svx/Library_svxcore.mk +++ b/svx/Library_svxcore.mk @@ -50,9 +50,6 @@ $(eval $(call gb_Library_set_include,svxcore,\ #.IF "$(GUI)"=="WNT" #CFLAGS+= -DUNICODE -D_UNICODE #.ENDIF -#.IF ("$(OS)$(CPU)"=="SOLARISS" && "$(COM)"!="GCC") || "$(OS)"=="MACOSX" || ("$(OS)"=="LINUX" && "$(CPU)"=="P") -#NOOPTFILES= $(SLO)$/EnhancedCustomShapeFunctionParser.obj -#.ENDIF $(eval $(call gb_Library_set_defs,svxcore,\ $$(DEFS) \ @@ -91,7 +88,6 @@ $(eval $(call gb_Library_add_linked_libs,svxcore,\ $(eval $(call gb_Library_add_exception_objects,svxcore,\ svx/source/core/coreservices \ svx/source/customshapes/EnhancedCustomShape2d \ - svx/source/customshapes/EnhancedCustomShapeFunctionParser \ svx/source/customshapes/EnhancedCustomShapeGeometry \ svx/source/customshapes/EnhancedCustomShapeTypeNames \ svx/source/dialog/checklbx \ @@ -433,6 +429,24 @@ $(eval $(call gb_Library_add_exception_objects,svxcore,\ svx/source/xoutdev/xtablend \ )) +#.IF ("$(OS)$(CPU)"=="SOLARISS" && "$(COM)"!="GCC") || "$(OS)"=="MACOSX" || ("$(OS)"=="LINUX" && "$(CPU)"=="P") +#NOOPTFILES= $(SLO)$/EnhancedCustomShapeFunctionParser.obj +#.ENDIF + +# the following source file can't be compiled with optimization by some compilers (crash or endless loop): +# Solaris Sparc with Sun compiler, gcc on MacOSX and Linux PPC +# the latter is currently not supported by gbuild and needs a fix here later +ifeq ($(OS),$(filter-out SOLARIS MACOSX,$(OS))) +$(eval $(call gb_Library_add_exception_objects,svxcore,\ + svx/source/customshapes/EnhancedCustomShapeFunctionParser \ +)) +else +$(eval $(call gb_Library_add_cxxobjects,svxcore,\ + svx/source/customshapes/EnhancedCustomShapeFunctionParser \ + , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \ +)) +endif + ifeq ($(OS),LINUX) $(eval $(call gb_Library_add_linked_libs,svxcore,\ dl \ |