bug#62343: libtool removes the "-no-canonical-prefixes" linker flag

Carlos Galvez <[email protected]> Tue, 21 Mar 2023 15:29:59 +0100
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <CAEYdZDqcL4k3DWyNyRnk3Y_1r35JiBzBXqOW=_yNwFXg1U1B_w@mail.gmail.com>
Hi!

I'm using libtool 2.4.6. I realize that it's removing a very important
linker flag, making my linking fail.

The command I send is:

../../libtool  --tag=CC   --mode=link /path/to/gcc -no-canonical-prefixes
<other_flags> <object_files>...

And what libtool prints is:

libtool: link: /path/to/gcc -shared <other_flags> <object_files> ...

Why is the "-no-canonical-prefixes" flag removed from the linking command?
If I manually execute linking outside libtool, and add the required flag,
linking works successfully.

Thanks!

_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool