From 3b114bd306faf561e2bde0671470d1824e62a5b4 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 30 May 2010 22:36:12 +0200 Subject: [PATCH] zlib: - disable build with LTO support --- packages/compress/zlib/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/compress/zlib/build b/packages/compress/zlib/build index ba821d844a..3e6facafd4 100755 --- a/packages/compress/zlib/build +++ b/packages/compress/zlib/build @@ -4,6 +4,11 @@ $SCRIPTS/build toolchain +# zlib fails to compile with GCC 4.5.0's link time optimization. + CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"` + CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"` + LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"` + cd $PKG_BUILD ./configure --prefix=/usr \ --libdir=/usr/lib \