mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Set rpath on deploy-stub to $ORIGIN for Linux builds
This allows game runtimes to search their directory for shared libraries instead of needing to use LD_LIBRARY_PATH.
This commit is contained in:
parent
b11ec02acb
commit
f61fbd356d
@ -6303,8 +6303,12 @@ if (PkgSkip("CONTRIB")==0 and not RUNTIME):
|
||||
if True: # TODO
|
||||
OPTS=['DIR:pandatool/src/deploy-stub', 'BUILDING:DEPLOYSTUB', 'PYTHON']
|
||||
TargetAdd('deploy-stub.obj', opts=OPTS, input='deploy-stub.c')
|
||||
if GetTarget() == 'linux':
|
||||
# Setup rpath so libs can be found in the same directory as the deployed game
|
||||
LibName('DEPLOYSTUB', "-Wl,-rpath,\$ORIGIN")
|
||||
LibName('DEPLOYSTUB', "-Wl,-z,origin")
|
||||
TargetAdd('deploy-stub.exe', input='deploy-stub.obj')
|
||||
TargetAdd('deploy-stub.exe', opts=['PYTHON'])
|
||||
TargetAdd('deploy-stub.exe', opts=['PYTHON', 'DEPLOYSTUB'])
|
||||
|
||||
#
|
||||
# Generate the models directory and samples directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user