Unverified Commit 01ad09c0 authored by Christian Kögler's avatar Christian Kögler Committed by GitHub
Browse files

physfs: don't set CMAKE_SKIP_RPATH (#346169)

parents c0e7638a e445971f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ let
      inherit sha256;
    };

    patches = [
      ./dont-set-cmake-skip-rpath-${version}.patch
    ];

    nativeBuildInputs = [ cmake doxygen ];

    buildInputs = [ zlib ]
+16 −0
Original line number Diff line number Diff line
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)
+13 −0
Original line number Diff line number Diff line
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")