physfs: don't set CMAKE_SKIP_RPATH (#346169)

This commit is contained in:
Christian Kögler
2025-01-02 11:15:10 +01:00
committed by GitHub
3 changed files with 33 additions and 0 deletions
@@ -13,6 +13,10 @@ let
inherit sha256;
};
patches = [
./dont-set-cmake-skip-rpath-${version}.patch
];
nativeBuildInputs = [ cmake doxygen ];
buildInputs = [ zlib ]
@@ -0,0 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b4ef61e..7b2f26c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,11 +29,6 @@ if(APPLE)
set(PHYSFS_M_SRCS src/physfs_platform_apple.m)
endif()
-if(CMAKE_COMPILER_IS_GNUCC)
- # Don't use -rpath.
- set(CMAKE_SKIP_RPATH ON CACHE BOOL "Skip RPATH" FORCE)
-endif()
-
if(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
add_definitions(-erroff=E_EMPTY_TRANSLATION_UNIT)
add_definitions(-xldscope=hidden)
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b3291cc..11e7ad1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,8 +32,6 @@ endif()
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall)
- # Don't use -rpath.
- set(CMAKE_SKIP_RPATH ON CACHE BOOL "Skip RPATH" FORCE)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "SunPro")