2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-10 21:09:07 +01:00

wscript: fix RPATH under OpenBSD

This commit is contained in:
Alibek Omarov 2024-01-23 21:03:10 +03:00
parent ffd320507f
commit 443317bedf

View File

@ -357,6 +357,10 @@ def configure(conf):
conf.env.DEFAULT_RPATH = '/usr/share/su.xash.Engine/lib'
elif conf.env.DEST_OS == 'darwin':
conf.env.DEFAULT_RPATH = '@loader_path'
elif conf.env.DEST_OS == 'openbsd':
# OpenBSD requires -z origin to enable $ORIGIN expansion in RPATH
conf.env.RPATH_ST = '-Wl,-z,origin,-rpath,%s'
conf.env.DEFAULT_RPATH = '$ORIGIN'
else:
conf.env.DEFAULT_RPATH = '$ORIGIN'