Closed ravener closed 1 year ago
@sk0kanik saw that issue, the error is slightly different and he can also compile normally if he doesn't explicitly use lld, but currently lld is the default, there should somehow be a fix or a way to set ld
as the default linker at the very least, so we don't have to worry about linker flags everytime. The issue is also quite old so I'm not sure how much stuff changed and what could be done now.
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I can reproduce it with up to date packages as well, so I guess we can patch it to change the default linker
ldc2 main.d -linker=ld
Permanent fix (ld
instead of empty)
@fagci Thanks, that solves it, setting the linker to ld
in $PREFIX/etc/ldc2.conf
.
@Grimler91 I think we could patch this file, it's simple and the user can override it if needed, luckily we don't need to touch the source code.
This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Problem description
The default
ldc2
command fails with the following linker error, however changing the linker to useld
seems to work fine.What steps will reproduce the bug?
Create a file
test.d
Run
ldc2 test.d
What is the expected behavior?
Compiles and links successfully without having to pass extra options
System information
termux-info: