Using flang as linker without supplying -libexecinfo is pretty much broken, one gets errors like
Of course one can add `-lexecinfo` to each such call, then it works, but isn't it a bug? After all, using clang as a linker just works, why it should not be the case for flang?
Code:
/usr/local/flang/lib/libflangrti.so: undefined reference to `backtrace_symbols'
/usr/local/flang/lib/libflangrti.so: undefined reference to `backtrace'
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
Of course one can add `-lexecinfo` to each such call, then it works, but isn't it a bug? After all, using clang as a linker just works, why it should not be the case for flang?