Fails running on termux
app.d: void main() {}
running ldc2 app.d results in the following error: /data/data/com.termux/files/usr/bin/ld.bfd: unrecognized option '--use-android-relr-tags' /data/data/com.termux/files/usr/bin/ld.bfd: use the --help option for usage information cc: error: linker command failed with exit code 1 (use -v to see invocation) Error: /data/data/com.termux/files/usr/bin/cc failed with status: 1
For me it displays this:
~ $ PATH=$PATH:~/ldc2-1.41.0-android-aarch64/bin
~ $ ldc2 --version
stack corruption detected (-fstack-protector)
stack corruption detected (-fstack-protector)
Aborted
The original report is about Termux's cc as linker driver (for ld.bfd, which isn't supported anymore for recent LDC versions - needs the lld linker, like recent NDKs) - we don't inject --use-android-relr-tags anywhere.