try pass rpath ./ to linker

This commit is contained in:
2024-10-30 16:08:46 -05:00
parent 987ea81a68
commit 8341c313ab
2 changed files with 4 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ jobs:
- name: Download fix-rpaths.py script
run: git clone https://gist.github.com/NQNStudios/7145bcf6621891f5176c8caa165d6b93
if: ${{ matrix.os.name == 'macos' }}
- name: Fix rpaths game
run: 'python 7145bcf6621891f5176c8caa165d6b93/fix-rpaths.py "build/Blades of Exile/Blades of Exile.app"'
if: ${{ matrix.os.name == 'macos' }}

View File

@@ -235,7 +235,9 @@ elif platform == "win32":
def build_app_package(env, source, build_dir, info):
env.Install(build_dir, source)
elif platform == "posix":
env.Append(CXXFLAGS=["-std=c++14","-include","global.hpp"])
env.Append(
CXXFLAGS=["-std=c++14","-include","global.hpp"],
LINKFLAGS=["-rpath", "./"])
def build_app_package(env, source, build_dir, info):
env.Install(build_dir, source)