libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I keep -lstdc++ out of $postdeps?


From: Jack Bates
Subject: Re: How can I keep -lstdc++ out of $postdeps?
Date: Thu, 23 Feb 2017 09:01:49 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

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.

Regardless of whether -static-libstdc++ is the solution he ultimately runs with, I think he's confused about _LT_SYS_HIDDEN_LIBDEPS -- as am I. The underlying compiler/linker seems to do a more refined job of adding/not adding these dependencies? Is there a recommended way to disable _LT_SYS_HIDDEN_LIBDEPS?

Thanks Mike!

[1] https://wilderness.apache.org/channels/?f=traffic-server/2017-02-21#1487715640



reply via email to

[Prev in Thread] Current Thread [Next in Thread]