logo       

Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries: msg#00014

sysutils.autoconf.general

Subject: Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries

On Fri, 6 Aug 2004, Ralf Corsepius wrote:

* Autoheader defines can be influenced by compiler/preprocessor flags
having been used during configuration. I.e. even "system defines" or
"standard defines" you may assume to be constant only reflect your
configuration's momentary situation. Even "sizes of types" or
"target/cpu has type" features depend on compiler flags.
[Consider multilibs/multiarch'ed systems. You'd have one config.h per
cpu-variant ("multiheaders").]

This is a very good point and a reason why library developers should strive to produce "invariant" headers which produce the same binary ABI even if the size of some types change based on compilation options. This is a good reason to use <stdint.h> or other similar headers in order to obtain specifically sized types.

Bob
======================================
Bob Friesenhahn
bfriesen@xxxxxxxxxxxxxxxxxxx
http://www.simplesystems.org/users/bfriesen


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise