[Libreoffice-commits] .: sc/Library_vbaobj.mk

Caolán McNamara caolan at kemper.freedesktop.org
Thu Sep 8 02:51:30 PDT 2011


 sc/Library_vbaobj.mk |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit f2416a7f2c9851f674b3a33ed50aa4e2109ae04c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 8 10:50:31 2011 +0100

    Related: gcc#50255 we now know the bounds of the broken gcc versions

diff --git a/sc/Library_vbaobj.mk b/sc/Library_vbaobj.mk
index 44e09b6..a3804e3 100644
--- a/sc/Library_vbaobj.mk
+++ b/sc/Library_vbaobj.mk
@@ -137,10 +137,12 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
         sc/source/ui/vba/vbawsfunction \
 ))
 
-#32bit Fedora gcc 4.6.1 fails to link sc without this
-#TO-DO: make standalone reproducer for this and file
-#gcc bug
+#http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50255
 ifeq ($(strip $(COM)),GCC)
+gccthunkBroken := $(shell expr $(gb_CCVER) \>= 40500 \& $(gb_CCVER) \< 40700)
+endif
+
+ifeq ($(gccthunkBroken),1)
 $(eval $(call gb_Library_add_cxxobjects,vbaobj,\
         sc/source/ui/vba/vbasheetobjects \
         , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
@@ -150,6 +152,7 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
     sc/source/ui/vba/vbasheetobjects \
 ))
 endif
+
 ifeq ($(OS),WNT)
 $(eval $(call gb_Library_add_linked_libs,vbaobj,\
 	advapi32 \


More information about the Libreoffice-commits mailing list