Browse Source

makepanda: Force DT_RPATH instead of DT_RUNPATH for deploy-stub

Fixes #1358
rdb 3 years ago
parent
commit
8617eb917c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -6979,7 +6979,7 @@ if PkgSkip("PYTHON") == 0:
 
 
     if GetTarget() == 'linux' or GetTarget() == 'freebsd':
     if GetTarget() == 'linux' or GetTarget() == 'freebsd':
         # Setup rpath so libs can be found in the same directory as the deployed game
         # Setup rpath so libs can be found in the same directory as the deployed game
-        LibName('DEPLOYSTUB', "-Wl,-rpath,\\$ORIGIN")
+        LibName('DEPLOYSTUB', "-Wl,--disable-new-dtags,-rpath,\\$ORIGIN")
         LibName('DEPLOYSTUB', "-Wl,-z,origin")
         LibName('DEPLOYSTUB', "-Wl,-z,origin")
         LibName('DEPLOYSTUB', "-rdynamic")
         LibName('DEPLOYSTUB', "-rdynamic")
     PyTargetAdd('deploy-stub.exe', input='deploy-stub.obj')
     PyTargetAdd('deploy-stub.exe', input='deploy-stub.obj')