From 12684c49eae6f7e12d82ef8c916d4f77183bf134 Mon Sep 17 00:00:00 2001 From: neodiX Date: Sat, 28 Dec 2024 16:50:12 +0400 Subject: [PATCH] add -fPIC -fcommon --- assembly/native/build-ubuntu-portable-libs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assembly/native/build-ubuntu-portable-libs.sh b/assembly/native/build-ubuntu-portable-libs.sh index a3d38076..a2221ff4 100644 --- a/assembly/native/build-ubuntu-portable-libs.sh +++ b/assembly/native/build-ubuntu-portable-libs.sh @@ -98,8 +98,7 @@ else fi cmake -GNinja .. \ --DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" \ --DCMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++" \ +-DCMAKE_EXE_LINKER_FLAGS="-static-libgcc -static-libstdc++ -fPIC -fcommon" \ -DPORTABLE=1 \ -DCMAKE_BUILD_TYPE=Release \ -DOPENSSL_FOUND=1 \