From 843c670539cd648fbda25e7cc864950c0709df66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= 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