From ad94d96052232a8c18ae69076295ef471d96d572 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 9 Aug 2018 13:54:29 -0700 Subject: [PATCH] Give up on LTO [skip ci] --- scripts/sqlite/3.24.0-min-size/script.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/scripts/sqlite/3.24.0-min-size/script.sh b/scripts/sqlite/3.24.0-min-size/script.sh index e377c7e69..c17a0fb3d 100755 --- a/scripts/sqlite/3.24.0-min-size/script.sh +++ b/scripts/sqlite/3.24.0-min-size/script.sh @@ -22,20 +22,7 @@ function mason_load_source { function mason_compile { # Note: setting CFLAGS overrides the default in sqlite of `-g -O2` # hence we add back the preferred optimization - export CFLAGS="${CFLAGS} -Os -flto -fPIC -DNDEBUG" - export LDFLAGS="${LDFLAGS} -flto -fPIC" - - # We need to use -O2 rather than -Os in LDFLAGS because of - # a toolchain issue: https://github.com/android-ndk/ndk/issues/721 - if [ ${MASON_PLATFORM} == "linux" ] || [ ${MASON_PLATFORM} == "android" ]; then - export LDFLAGS="${LDFLAGS} -O2" - fi - - if [ ${MASON_PLATFORM} == "linux" ] && [ ${MASON_PLATFORM_VERSION} == "x86_64" ]; then - export LDFLAGS="${LDFLAGS} -fuse-ld=gold" - fi - - ./configure \ + CFLAGS="${CFLAGS} -Os -DNDEBUG" ./configure \ --prefix=${MASON_PREFIX} \ ${MASON_HOST_ARG} \ --enable-static \