summaryrefslogtreecommitdiff
path: root/recipes/cairo/0001-configure-Disable-LTO-as-it-breaks-at-least-on-Andro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/cairo/0001-configure-Disable-LTO-as-it-breaks-at-least-on-Andro.patch')
-rw-r--r--recipes/cairo/0001-configure-Disable-LTO-as-it-breaks-at-least-on-Andro.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/cairo/0001-configure-Disable-LTO-as-it-breaks-at-least-on-Andro.patch b/recipes/cairo/0001-configure-Disable-LTO-as-it-breaks-at-least-on-Andro.patch
new file mode 100644
index 00000000..1838e076
--- /dev/null
+++ b/recipes/cairo/0001-configure-Disable-LTO-as-it-breaks-at-least-on-Andro.patch
@@ -0,0 +1,35 @@
+From 843c670539cd648fbda25e7cc864950c0709df66 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
+Date: Tue, 21 Oct 2014 17:28:47 +0200
+Subject: [PATCH] configure: Disable LTO as it breaks at least on Android
+
+Results in a static library without any symbols at all.
+---
+ build/configure.ac.warnings | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings
+index f984eb2..2c4e34d 100644
+--- a/build/configure.ac.warnings
++++ b/build/configure.ac.warnings
+@@ -35,17 +35,6 @@ MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
+
+ 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
+--
+2.1.1
+