--- CMakeLists.txt.orig	2020-06-21 11:31:52.000000000 -0700
+++ CMakeLists.txt	2020-06-21 11:42:23.000000000 -0700
@@ -29,11 +29,6 @@
     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)
@@ -171,7 +166,6 @@
 option(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
 if(PHYSFS_BUILD_SHARED)
     add_library(physfs SHARED ${PHYSFS_SRCS})
-    set_target_properties(physfs PROPERTIES MACOSX_RPATH 1)
     set_target_properties(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
     set_target_properties(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
     if(WINRT)
