From 3d25e10a6ba5be9b6cb0408cf238c8bdaac22295 Mon Sep 17 00:00:00 2001 From: Leon Windheuser Date: Fri, 2 Jun 2023 23:04:26 +0200 Subject: [PATCH] Add position independent code flag for cmake --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c9928bd54..7a028690d 100755 --- a/install.sh +++ b/install.sh @@ -53,7 +53,7 @@ if [ $? != 0 ]; then exit 1 fi -cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX="${SDSL_INSTALL_PREFIX}" .. # run cmake +cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX="${SDSL_INSTALL_PREFIX}" .. # run cmake if [ $? != 0 ]; then echo "ERROR: CMake build failed." exit 1