Article View: gnu.gcc.help
Article #52282Re: gcc include directories
From: Ian Lance Taylor
Date: Wed, 09 Dec 1992 23:59
Date: Wed, 09 Dec 1992 23:59
17 lines
1447 bytes
1447 bytes
In gnu.gcc.help Amos A. Gouaux writes: >by setting prefix to /usr/local/gnu, i was able to see that a header file >called assert.h was stuck into ($prefix)/include. perhaps this could go >into ($prefix)/lib/gcc-lib/include too, to be consistent. Putting <assert.h> in $(prefix)/lib/gcc-lib/include can cause problems if more than one different ANSI library is used, such as using glibc. This is because assert.h makes assert call __eprintf, which is defined in libgcc2.c, and __eprintf uses stdio to output a message. This might be built with the native version of <stdio.h>; if you then switch to using the glibc version of stdio, the wrong thing will get passed to fprintf. Putting <assert.h> in $(prefix)/include allows glibc to override it; if it were in $(prefix)/lib/gcc-lib/include, then it would always be found first, and glibc would be out of luck. Ian Taylor
Technical Details
Message-ID:
<9212092359.AA08765@tweedledumb.cygnus.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!ianReferences:
<amos.723068575@sol>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,57e0dbe82e1429b X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-12-09 16:06:43 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!ian From: ian@cygnus.com (Ian Lance Taylor) Subject: Re: gcc include directories Message-ID: <9212092359.AA08765@tweedledumb.cygnus.com> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet References: <amos.723068575@sol> Distribution: gnu Date: Wed, 9 Dec 1992 23:59:12 GMT Lines: 17