From 8dbfeb4988f69b91b8513b688b8dcc872af6aba5 Mon Sep 17 00:00:00 2001 From: clemens Date: Tue, 19 Aug 2025 16:53:50 +0200 Subject: [PATCH] temporarily disabled PIE to fix build-issue on Ubuntu --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5372ae9bbc..6a060fcba3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,11 @@ project(GamePlay) set(GAMEPLAY_VERSION 3.0.0) set(CMAKE_C_COMPILER_INIT g++) +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + message(STATUS "Linux detected - disabling PIE build") + # to temporary fix build issue on Ubuntu (dep-libs shall be built with -fPIC to fix it permanently) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie") +endif() # debug message( "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" )