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

2017-02-22 Thread Jack Bates
How can I avoid dynamically linking with libstdc++? or, how can I keep -lstdc++ out of $postdeps? When I run "./configure CXXFLAGS=-static-libstdc++", _LT_SYS_HIDDEN_LIBDEPS (in libtool.m4) runs the following command: $CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:

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

2017-02-23 Thread Jack Bates
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

Re: disable indirect dependency linking

2017-02-23 Thread Jack Bates
On Tue, Feb 07, 2017 at 12:02:50PM +1100, Sashan Govender wrote: > Hi > > How do I tell libtool not to recursively add dependant libraries to > the list of libraries to link with. For example, say I have a program > A, that depends on libfoo and libfoo depends on libbar. In my > Makefile.am for A

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

2017-02-23 Thread Jack Bates
On 23/02/17 12:04 PM, Mike Frysinger wrote: 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. wh

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

2017-02-24 Thread Jack Bates
On 23/02/17 05:55 PM, Thomas Jahns wrote: On 02/23/2017 05:01 PM, 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. wh

link statically with one library and dynamically with another?

2008-05-04 Thread Jack Bates
How can I link statically with one library and dynamically with another? I am building an Apache module which uses libtidy: http://tidy.sourceforge.net/ Because I frequently want to install this module on Mac OS X, which does not by default ship with a libtidy shared library, I include the libtid