This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] PowerPC64 port part 1 of 7
- From: "Steve Munroe" <sjmunroe at us dot ibm dot com>
- To: Andreas Jaeger <aj at suse dot de>, Alan Modra <amodra at bigpond dot net dot au>
- Cc: libc-alpha at sources dot redhat dot com, libc-alpha-owner at sources dot redhat dot com, Roland McGrath <roland at frob dot com>, Steven Munroe <sjmunroe at vnet dot ibm dot com>
- Date: Mon, 19 Aug 2002 16:41:44 -0500
- Subject: Re: [PATCH] PowerPC64 port part 1 of 7
Andreas Jaeger wrote
> Since your patches to config.* are already in the official config
> repository, we can just import the new version. glibc CVS mainline
> has already a working version, that can be just copied over.
Thanks Andreas.
The config.sub changes are already in the cvs and there is no actual patch
for it in the attached diff. I missed this and should have removed the
config.sub reference from the ChangeLog.
However config.quess still shows the attached diff from CVS. I don't recall
this specifically, but I suspect it came as a patch form Alan.
Alan do you recall this? Is it still needed?
Thanks.
diff -rc2PN -x *.orig libc23-cvstip-20020815/scripts/config.guess
libc23/scripts/config.guess
*** libc23-cvstip-20020815/scripts/config.guess Thu Jul 4 02:15:21 2002
--- libc23/scripts/config.guess Thu Aug 15 16:54:50 2002
***************
*** 822,825 ****
--- 822,854 ----
echo powerpc64-unknown-linux-gnu
exit 0 ;;
+ ppc64:Linux:*:*)
+ # Determine Lib Version
+ cat >$dummy.c <<EOF
+ #include <features.h>
+ #if defined(__GLIBC__)
+ extern char __libc_version[];
+ extern char __libc_release[];
+ #endif
+ main(argc, argv)
+ int argc;
+ char *argv[];
+ {
+ #if defined(__GLIBC__)
+ printf("%s %s\n", __libc_version, __libc_release);
+ #else
+ printf("unknown\n");
+ #endif
+ return 0;
+ }
+ EOF
+ LIBC=""
+ $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
+ if test "$?" = 0 ; then
+ ./$dummy | grep 1\.99 > /dev/null
+ if test "$?" = 0 ; then LIBC="libc1" ; fi
+ fi
+ rm -f $dummy.c $dummy
+ echo powerpc64-unknown-linux-gnu${LIBC}
+ exit 0 ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in