forked from pool/cairo
0065eee66c
- Add cairo-disable-lto.patch to disable LTO on s390{x} to fix the build. OBS-URL: https://build.opensuse.org/request/show/197001 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/cairo?expand=0&rev=78
22 lines
751 B
Diff
22 lines
751 B
Diff
Index: cairo-1.12.16/build/configure.ac.warnings
|
|
===================================================================
|
|
--- cairo-1.12.16.orig/build/configure.ac.warnings
|
|
+++ cairo-1.12.16/build/configure.ac.warnings
|
|
@@ -36,16 +36,6 @@ MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_T
|
|
dnl We also abuse the warning-flag facility to enable other compiler
|
|
dnl options. Namely, the following:
|
|
|
|
-dnl -flto working really needs a test link, not just a compile
|
|
-
|
|
-safe_MAYBE_WARN="$MAYBE_WARN"
|
|
-MAYBE_WARN="$MAYBE_WARN -flto"
|
|
-AC_TRY_LINK([],[
|
|
- int main(int argc, char **argv) { return 0; }
|
|
-],[],[
|
|
- MAYBE_WARN="$safe_MAYBE_WARN"
|
|
-])
|
|
-
|
|
MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
|
|
|
|
dnl Also to turn various gcc/glibc-specific preprocessor checks
|