From 8341c313abb40ee68b96a90f255c6c9686242160 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 30 Oct 2024 16:08:46 -0500 Subject: [PATCH] try pass rpath ./ to linker --- .github/workflows/release.yml | 1 + SConstruct | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ea14676d..288110897 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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' }} diff --git a/SConstruct b/SConstruct index 67be2bd4b..a0bc8a666 100644 --- a/SConstruct +++ b/SConstruct @@ -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)