CMake: Enable PIC on Linux

Otherwise ASLR does not work. Also stops LTO builds crashing in the
middle of Qt on Fedora.
This commit is contained in:
Stenzek
2024-08-24 18:32:28 +10:00
parent 72fc81a705
commit 41fb5d3d9a
2 changed files with 8 additions and 1 deletions

View File

@ -143,7 +143,7 @@ echo "Building libbacktrace..."
rm -fr "libbacktrace-$LIBBACKTRACE"
unzip "$LIBBACKTRACE.zip"
cd "libbacktrace-$LIBBACKTRACE"
./configure --prefix="$INSTALLDIR"
./configure --prefix="$INSTALLDIR" --with-pic
make
make install
cd ..