Partially revert 6ec149d. Fixes #7799

Turns out linking with LTO still doesn't play nice with Qt.
For reference:
https://github.com/InBetweenNames/gentooLTO/issues/444
https://bugreports.qt.io/browse/QTBUG-61710
This commit is contained in:
Zion Nimchuk 2020-03-19 00:22:42 -07:00 committed by Ivan
parent 1dbb5422a2
commit 5ba07ed50f

View File

@ -33,8 +33,7 @@ else
export RANLIB=/usr/bin/llvm-ranlib-$LLVMVER export RANLIB=/usr/bin/llvm-ranlib-$LLVMVER
fi fi
# Use link time optimization to save some space export CFLAGS="-fuse-linker-plugin -fuse-ld=${LINKER}"
export CFLAGS="-flto -fuse-linker-plugin -fuse-ld=${LINKER}"
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LLVM_SUBMODULE=OFF -DUSE_COTIRE=OFF -DLLVM_DIR=llvmlibs/lib/cmake/llvm/ -DUSE_NATIVE_INSTRUCTIONS=OFF \ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LLVM_SUBMODULE=OFF -DUSE_COTIRE=OFF -DLLVM_DIR=llvmlibs/lib/cmake/llvm/ -DUSE_NATIVE_INSTRUCTIONS=OFF \
-DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CFLAGS" -DCMAKE_AR=$AR -DCMAKE_RANLIB=$RANLIB \ -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CFLAGS" -DCMAKE_AR=$AR -DCMAKE_RANLIB=$RANLIB \