clang compile c executable has no @rpath on macos
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c, macos
- Domain
- build-system, operating-systems
Research direction
No source file or test is named. Start by reproducing the generated clang commands on macOS and trace where Premake handles C executable linking, comparing it with the C++ path that already includes the rpath option. Done means C executables receive the expected @rpath linker setting and the behavior is covered by a regression test if the existing test structure permits it.
Written by the indexing model from the issue text.
Description
bug
clangcommand generate executable, has no@rpathoption add in linking phase, eg:-Wl,-rpath,@loader_path/.- system & architecture info:
- system:
mac Sequoia 15.0 - arch:
Apple M3(ARM64)
- system:
premake5 ver:
last commit info:
commit d842e671c7bc7e09f2eeaafd199fd01e48b87ee7 (HEAD -> master, origin/master, origin/HEAD)
Author: João Matos <joao@tritao.eu>
Date: Mon Apr 29 17:08:41 2024 +0100
Update Emscripten extension fork modules.md
This just updates the URL to my fork, which is an up to date and mantained version.
premake5 generated compile command:
clang -MD -MP -D_GLIBCXX_USE_CXX11_ABI=0 -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3 -O2 -g -Wall -Werror -Wno-strict-aliasing -o "obj/release64/lullbc_luaexec/lua.o" -MF "obj/release64/lullbc_luaexec/lua.d" -c "../../wrap/lullbc/lua/lua.c"
additional info
If compile c++ file, will auto add -Wl,-rpath,@loader_path/. compile option when dll or exec generate
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 654
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from premake/premake-core
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
premake/premake-core#2753 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 84/100
premake/premake-core#2741 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
premake/premake-core#2798 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 70/100
premake/premake-core#2788 · 3 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
premake/premake-core#2786 · 10 comments ·
All issues in premake/premake-core
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100