mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
Fix surgical linking for C hosts with extra arg
This commit is contained in:
parent
7d1b88b3fb
commit
a593713800
@ -275,6 +275,7 @@ pub fn build_c_host_native(
|
||||
command.args(&[
|
||||
shared_lib_path.to_str().unwrap(),
|
||||
"-fPIE",
|
||||
"-pie",
|
||||
"-lm",
|
||||
"-lpthread",
|
||||
"-ldl",
|
||||
|
@ -33,7 +33,6 @@ This linker is run in 2 phases: preprocessing and surigical linking.
|
||||
|
||||
- Run CLI tests and/or benchmarks with the Roc Linker.
|
||||
- Test with an executable completely generated by Cargo (It will hopefully work out of the box like zig).
|
||||
- Investigate why C is using absolute jumps to the main function from `_start`. This means our shifts break the executable.
|
||||
- Add Macho support
|
||||
- Honestly should be almost exactly the same code.
|
||||
This means we likely need to do a lot of refactoring to minimize the duplicate code.
|
||||
|
Loading…
Reference in New Issue
Block a user