This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: V3 configury, again
>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
Alexandre> On Jan 24, 2001, Mark Mitchell <mark@codesourcery.com>
Alexandre> wrote:
>> So, I'll need to put that back in, along with the AIX-specific
>> libool changes, right?
Alexandre> Please hold off your libtool changes for a moment,
Alexandre> while I test an alternate approach that I find cleaner.
OK.
I actually think my changes are pretty clean, but obviously if you can
do better that's terrific!
The current code "lies" about AIX in that it says if *at ltconfig-time*
you said:
--enable-shared
Then you really meant:
--enable-shared --disable-static
But, you didn't. You just said --enable-shared, and you want static
libraries just like everyone else. It's just that your system treats
a shared library like a static archive, too.
So, I changed it to have an explicit variable that says "my system
works like AIX -- both libraries are folded into one."
Then, if you actually try to *build* both libraries at the same time
with libtool, it says "oh, look, on this sytem I only need to build
the shared variant, and I get the static one for free."
This approach admits freely that AIX is not a SVR4-ish system in this
regard. (The old approach tried to pretend that it was, but that you
never wanted static libraries.) As with good machine descriptions, I
think we should just be honest: AIX is "weird" relative to GNU/Linux,
Solaris, IRIX, etc. We just have to go with it. :-)
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com