[Top][All Lists]

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

Re: -xc99=all and libraries on Solaris 10

From: Bob Friesenhahn
Subject: Re: -xc99=all and libraries on Solaris 10
Date: Sun, 26 Dec 2010 12:38:21 -0600 (CST)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Sun, 26 Dec 2010, Bruno Haible wrote:


Reviving an old thread from February 2010.
In <>
Peter O'Gorman wrote:

When creating a library or application with c99 or cc -xc99=all
/usr/lib/values-xpg6.o is included in the output, this object file
contains the c99 definitions for __xpg4 and __xpg6. When creating output
without c99/-xc99=all this extra object is not put into the output and
the values of __xpg4 and __xpg6 in libc (c89 behavior) are used (because
they are the only definitions available).

I confirm with a test program.


This topic is currently discussed on the autoconf list. It seems to me that it has implications for libtool as well. I think that this is a very similar issue to how pthreads are handled (and which libtool now accounts for). The issue for libtool is if it should remember if /usr/lib/values-xpg4.o or /usr/lib/values-xpg6.o needs to be included in the output (via a library .la file). There is also the issue that c99-linked code should (ideally) not be mixed with older code. All code should be compiled and linked at the same 'xpg' level in order to assure original consistent operation. GNU's desire to promote the latest standards results in older already-installed libraries behaving differently than they originally did after a newer library is added.

Due to this, I am Cc:ing the libtool list in this reply.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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