File opae-cmake-do-not-build-shared-libraries-with-pie.patch of Package opae
commit 18ef2b806efe3d3c8d44336dbdd4f08cbd7475f5
Author: Nicolas Morey <nmorey@suse.com>
Date: Fri Oct 10 08:56:58 2025 +0200
opae: cmake: do not build shared libraries with pie
Signed-off-by: Nicolas Morey <nmorey@suse.com>
diff --git opae-libs/cmake/modules/OPAECompiler.cmake opae-libs/cmake/modules/OPAECompiler.cmake
index 224f3026de9a..2785a95c5fd0 100644
--- opae-libs/cmake/modules/OPAECompiler.cmake
+++ opae-libs/cmake/modules/OPAECompiler.cmake
@@ -119,7 +119,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebI
# Linker options
if (NOT ${CMAKE_C_COMPILER} MATCHES "clang")
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pie")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
endif()
endif()