This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stdlib/isomac.c is now broken.


On Wed, Mar 28, 2001 at 10:53:54PM -0800, H . J . Lu wrote:
> This patch
> 
> 2001-03-27  Ulrich Drepper  <drepper@redhat.com>
> 
> 	* stdlib/isomac.c (fmt): Don't define _LIBC.
> 
> breaks
> 
> # ...../configure --with-headers=....
> # make
> # make check
> 
> since gnu/stubs.h is generated during
> 
> # make install
> 
> With --with-headers=..., configure puts
> 
> sysincludes= -nostdinc -isystem ...
> 
> in config.make. The C compiler called by isomac won't search
> /usr/include for anything, which is what we want. "make check" now
> fails in stdlib/isomac. I guess you didn't see the problem because
> you pick up <gnu/stubs.h> from /usr/include. To duplicate the
> problem, please use
> 
> # ...../configure --with-headers=....
> 
> to configure glibc.
> 

Here is a patch.


H.J.
----
2001-03-29  H.J. Lu  <hjl@gnu.org>

	* include/endian.h: Define BIG_ENDI, LITTLE_ENDI, HIGH_HALF,
	and LOW_HALF only if _LIBC is defined and _ISOMAC is not
	defined.
	
	* stdlib/isomac.c (fmt): Define _LIBC and _ISOMAC.
	.
--- libc/include/endian.h.isomac	Wed Mar 28 10:45:23 2001
+++ libc/include/endian.h	Thu Mar 29 09:54:38 2001
@@ -1,6 +1,6 @@
 #include <string/endian.h>
 
-#ifdef _LIBC
+#if defined _LIBC && !defined _ISOMAC
 # if __FLOAT_WORD_ORDER == __BIG_ENDIAN
 #  define BIG_ENDI 1
 #  undef LITTLE_ENDI
--- libc/stdlib/isomac.c.isomac	Wed Mar 28 10:45:48 2001
+++ libc/stdlib/isomac.c	Thu Mar 29 09:54:28 2001
@@ -176,7 +176,7 @@ static char *macros[] =
 /* Format string to build command to invoke compiler.  */
 static const char fmt[] = "\
 echo \"#include <%s>\" |\
-%s -E -dM -ansi -pedantic %s -I. \
+%s -E -dM -ansi -pedantic %s -D_LIBC -D_ISOMAC -I. \
 -isystem `%s --print-prog-name=include` - 2> /dev/null > %s";
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]