]> git.pld-linux.org Git - packages/libreoffice.git/commitdiff
- fixes build with gcc 4.5 (backported from git master)
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 8 May 2010 09:41:42 +0000 (09:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openoffice.org-hotfix-gcc45.patch -> 1.1

openoffice.org-hotfix-gcc45.patch [new file with mode: 0644]

diff --git a/openoffice.org-hotfix-gcc45.patch b/openoffice.org-hotfix-gcc45.patch
new file mode 100644 (file)
index 0000000..1d0bda5
--- /dev/null
@@ -0,0 +1,31 @@
+--- cppu/inc/uno/lbnames.h.old 2010-02-02 12:49:41.000000000 +0100
++++ cppu/inc/uno/lbnames.h     2010-03-05 17:13:22.000000000 +0100
+@@ -62,12 +62,12 @@ provoking error here, because PP ignores
+ #error "Tested gcc 2 versions are 2.91 and 2.95.  Patch uno/lbnames.h to try your gcc 2 version."
+ #elif (__GNUC__ == 3 && __GNUC_MINOR__ <= 4)
+ #define __CPPU_ENV gcc3
+-#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 4)
++#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 5)
+ #define __CPPU_ENV gcc3
+ #elif (__GNUC__ == 3)
+ #error "Tested gcc 3 version is <= 3.4.  Patch uno/lbnames.h to try your gcc 3 version."
+ #else
+-#error "Supported gcc majors are 2 , 3 and 4 <= 4.4.  Unsupported gcc major version."
++#error "Supported gcc majors are 2 , 3 and 4 <= 4.5.  Unsupported gcc major version."
+ #endif /* defined (__GNUC__) */
+ #endif /* defined (_MSC_VER) */
+--- sal/cpprt/makefile.mk.old  2010-02-02 12:49:41.000000000 +0100
++++ sal/cpprt/makefile.mk      2010-03-04 18:06:37.000000000 +0100
+@@ -43,6 +43,11 @@ LIBTARGET=NO
+ CFLAGS+= $(LFS_CFLAGS)
+ CXXFLAGS+= $(LFS_CFLAGS)
++.IF "$(CCNUMVER)" >= "000400050000" && "$(CCNUMVER)" < "000400060000"
++CFLAGS+= -fno-ipa-sra
++CXXFLAGS+= -fno-ipa-sra
++.ENDIF 
++
+ # --- Files --------------------------------------------------------
+ SLOFILES =    \
This page took 0.180704 seconds and 4 git commands to generate.