URL: <https://savannah.gnu.org/support/?110947>
Summary: flang: error: unknown argument: '-soname' Group: GNU Libtool Submitter: None Submitted: Sun 22 Oct 2023 12:02:06 PM UTC Category: None Priority: 5 - Normal Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Originator Email: shterenli...@par-tec.com Open/Closed: Open Discussion Lock: Any Operating System: GNU/Linux _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 22 Oct 2023 12:02:06 PM UTC By: Anonymous It seems flang (and armflang) are not handled correctly by libtool. In a simple project (reproducer attached) I get: /bin/sh ./libtool --tag=FC --mode=link armflang -g -version-info 0:0:0 -o libp2.la -rpath /bm/ashterenli/p2/reproducer/reproducer-1.0/_inst/lib libp2_la-ffun.lo libp2_la-cfun.lo libtool: link: armflang -shared .libs/libp2_la-ffun.o .libs/libp2_la-cfun.o -g -soname libp2.so.0 -o .libs/libp2.so.0.0.0 armflang: error: unknown argument: '-soname' Note that "-Wl" is mising. If gfortran is used instead, I get: /bin/sh ./libtool --tag=FC --mode=link gfortran -g -O2 -version-info 0:0:0 -o libp2.la -rpath /bm/ashterenli/p2/reproducer/reproducer-1.0/_inst/lib libp2_la-ffun.lo libp2_la-cfun.lo libtool: link: gfortran -shared -fPIC .libs/libp2_la-ffun.o .libs/libp2_la-cfun.o -g -O2 -Wl,-soname -Wl,libp2.so.0 -o .libs/libp2.so.0.0.0 Note that "-Wl" now appears correctly. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sun 22 Oct 2023 12:02:06 PM UTC Name: reproducer.tar.gz Size: 1KiB By: None <http://savannah.gnu.org/support/download.php?file_id=55265> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/support/?110947> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/