flang compiler and wrappers

"Shterenlikht, Anton" <[email protected]> Wed, 26 Jun 2024 07:21:30 +0000
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
Please help understand and fix this problem:

libtool: link: ftn -shared   <skip files>  -soname libxxx.so.0 -o .libs/libxxx.so.0.0.0
clang-16: error: unknown argument: '-soname'

which comes from my compiler wrapper not recognised.
The libtool script generated for my project has:

# A language specific compiler.
CC="ftn"

# Is the compiler the GNU compiler?
with_gcc=no

# Compiler flag to turn off builtin functions.
no_builtin_flag=""

# Additional compiler flags for building library objects.
pic_flag=""

# How to pass a linker flag through the compiler.
wl=""

I can fix this with 

sed -i -e 's/wl=""/wl="-Wl,"/g' libtool

as I reported in https://savannah.gnu.org/patch/?9442

However, what is the right way to deal with this?

Finally, will the patch from https://savannah.gnu.org/patch/?9442
be included in the upcoming libtool release?

Thank you

Anton