On Sun, 14 Oct 2018, Simon Lees wrote:
On 13/10/2018 19:16, L A Walsh wrote:
In making a tool, I got libtool: error: cannot find the library '/usr/lib64/../lib64/libstdc++.la' or unhandled argument '/usr/lib64/../lib64/libstdc++.la'
So I went to look for it.
I can't find it in tumbleweed. What could have happened to it?
If it existed it would be in a static-devel package generally in openSUSE we don't ship files for static linking, with a few exceptions because it mostly doesn't make sense for us vs dynamic linking, maybe we could / should for gcc though.
Static runtime libs from GCC are shipped with the gcc{,-c++,-fortran,...} {,-32bit,-64bit} packages. Statically linking those is under control of the compiler driver because it usually isn't "simple" enough so that what .la files provide is enough. There's even specific flags to link specific libs statically, like -static-libstdc++.
Is there a specific reason why your using static linking? if not try dynamic linking instead and you won't have these issues.
... but of course a simple -static also links libstdc++ statically.
I'm curious what piece of software looks for libstdc++.la and refuses
to statically link when that's not available.
Richard.
--
Richard Biener