diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index b44e6a72b0..f8ff2e1725 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -6979,7 +6979,7 @@ if PkgSkip("PYTHON") == 0: if GetTarget() == 'linux' or GetTarget() == 'freebsd': # 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', "-rdynamic") PyTargetAdd('deploy-stub.exe', input='deploy-stub.obj')