-
-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang compile c executable has no @rpath on macos #2262
Comments
You can try adding this to https://github.com/premake/premake-core/blob/master/premake5.lua#L197 : runpathdirs { "." } |
Thanks, I try to fix this bug using below methods: -- method 1:
filter { "system:macosx" }
linkoptions { "-Wl,-rpath,@loader_path" }
filter {}
-- method 2(a mre elegant method):
filter { "system:macosx" }
runpathdirs { "@loader_path" }
filter {} |
I think this is a premake tool bug, I hope premake's developers can fix it |
Unfortunately, I don't have an apple device to verify a build. If someone would put forward a PR with tests, I'd happily review it. |
Haha.... |
I do not plan on closing this :) |
bug
clang
command generate executable, has no@rpath
option add in linking phase, eg:-Wl,-rpath,@loader_path/.
mac Sequoia 15.0
Apple M3(ARM64)
premake5 ver:
last commit info:
premake5 generated compile command:
additional info
If compile c++ file, will auto add
-Wl,-rpath,@loader_path/.
compile option when dll or exec generateThe text was updated successfully, but these errors were encountered: