Re: How can I keep -lstdc++ out of $postdeps?
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <20170223190459.GV28432@vapier> |
On 23 Feb 2017 09:01, Jack Bates wrote: > On 22/02/17 12:16 PM, Mike Frysinger wrote: > > On 22 Feb 2017 10:32, Jack Bates wrote: > >> How can I avoid dynamically linking with libstdc++? > >> or, how can I keep -lstdc++ out of $postdeps? > > > > let's back up. what is it you're actually trying to do ? > > you want to create a statically linked C++ program ? > > you want to link a C program ? > > something else ? > > Well, I'm asking for a friend [1]. It sounds like he's got one version > of libstdc++ in his build infrastructure and another (older) version on > his production machines. He wants to avoid using the older version (I > think because of an issue with the STL) which is why he's trying to keep > -lstdc++ out of the linker arguments. unfortunately, trying to hack the link lines won't help with this. the headers and libraries are kept in sync. you can't use newer headers and try to run against older libraries. your best bet is probably to just get an older toolchain and use that to compile. or get a copy of the distro that's used in production and use that to compile the code you care about. distros often can be used in chroots so it's not like you need to reinstall the entire system. -mike _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAlivMlsACgkQQWM7n+g3 9YEa8BAAjLyq08zDSyltgtN1D5JRnmN76cRYTIPWAMN3l8naXqKHDG+aG35O9BQr eoafXQdjJwz/NPA4BMKmyiRSt49PoGxSKgGuKyzY2E5O5S6hoCchbZnpPWAV1X78 ruLe7U8q0qxRdOdioIyYnUnpEPv0PIFtKFllrYYnfNahZPwaAn9hac+FGLLTSag0 Stj1zeP27jOFuPC0qUaUhkJul/6eGF8nYKwpbYZBxkC8Cf24lb+inSS2PkZH3iE6 nomdwxBm1lBwRjLEfFUgxBmIdfDA2pL3S6wiFtDR7ioaBz2VK2pEJutl7z7laOur Vwn60YU8msFzTZ8qwWBaN6TvXsNSeNopQAoOvTtkbOhLDOgvkD6KASI8b4X2e/Ee wJpzUPv1nvQmpk33HP8ZnIFMm36PGjP6AGT9Hkwbzg8xhOgmBE/ekZ10sTNzV+cr D8zjF5OZHjELw3fyQcyC3eVPLv2koSkfntx+VzTqzigm3nRE0KrBM7XPLuNiBkF1 snYwDtfJ3IYJbsH+uHLjFTfCParOegrpyl5H7Hfi0ENGIH234hn2MsljcaSiYqgw nJ0LYFvJwEPt+ZRV1W/wHMMWXefKGHM6vKKK7KUX2gYooHS7KgXS4onDSnA4U2Im 4uRg7WzVb3doJP6D1GqcAsTHK8fh1LuW3WMfiJZV7oBuDQbgce4= =UBgo -----END PGP SIGNATURE-----