Skip to content

Commit 56b50ae

Browse files
committed
Remove -flto from cairo build
The flag was removed by upstreams in 2014 (cairo 1.14). This fixes ps3toolchain#87.
1 parent a26a929 commit 56b50ae

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

patches/cairo-1.10.0.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- cairo-1.10.0/build/configure.ac.warnings.orig 2020-07-13 12:22:37.920663090 +0200
2+
+++ cairo-1.10.0/build/configure.ac.warnings 2020-07-13 12:23:44.624573762 +0200
3+
@@ -27,7 +27,7 @@
4+
5+
dnl We also abuse the warning-flag facility to enable other compiler
6+
dnl options. Namely, the following:
7+
-MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common -flto"
8+
+MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
9+
10+
dnl Also to turn various gcc/glibc-specific preprocessor checks
11+
MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"

scripts/006-cairo-1.10.0.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ rm -Rf cairo-1.10.0 && tar xfvz cairo-1.10.0.tar.gz && cd cairo-1.10.0
1414
## Replace config.guess and config.sub
1515
cp ../config.guess ../config.sub build/
1616

17+
## Patch the source code.
18+
cat ../../patches/cairo-1.10.0.patch | patch -p1
19+
1720
## Create the build directory.
1821
mkdir build-ppu && cd build-ppu
1922

0 commit comments

Comments
 (0)