[Scons-users] GCC Tool breaks linker for explicitly named libraries

Steve Hill (Wireless) Steve.Hill1 at viavisolutions.com
Fri Dec 17 11:03:00 EST 2021


Hi,

We've had someone add a library as ":libfoo.a" to force the (GCC) linker to link against exactly "libfoo.a" and ignore "libfoo.so". Unfortunately, when they add this, _stripixes removes the ".a" and passes "-l:libfoo" to the linker. Since a library with the exact name "libfoo" doesn't exist, the link fails. If they add the library as ":libfoo.a.a", _stipixes removes one (and only one) ".a", leaving "-l:libfoo.a" and the link completes successfully.

Is this a bug or is there a workaround for this use-case?

Thanks,

Steve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20211217/d23e36c5/attachment.htm>


More information about the Scons-users mailing list