[clang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 25 12:31:09 PDT 2023


tarunprabhu wrote:

The buildkite [fails](https://buildkite.com/llvm-project/github-pull-requests/builds/3888#018acca9-e640-47a6-bfe8-3831aeddeb41) yet again because the link flags seem to be mapped differently. 

The link line generated on Windows is:

`"C:\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\\link.exe" "-out:a.exe" "-libpath:c:\\ws\\src\\build\\lib" "Fortran_main.lib" "FortranRuntime.lib" "FortranDecimal.lib" "/subsystem:console" "-nologo" "-dll" "-implib:a.lib" "-rpath" "/path/to/dir" "C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\lit-tmp-oaf0t3ny\\linker-flags-de9f45.o"`

I don't see `-shared` or `-static`. Can someone help me with this? Is `-dll` is the equivalent of `-shared`? Does windows support static libraries?

https://github.com/llvm/llvm-project/pull/66702


More information about the cfe-commits mailing list