This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: [PATCH] mknumeric_limits for AIX
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: [PATCH] mknumeric_limits for AIX
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 12 Oct 2000 13:20:49 -0700 (PDT)
- cc: libstdc++ at sources dot redhat dot com
> Additionally, the use of `uname` cannot be correct in the face of
> cross-compilation. Should the target triplet be passed to
> mknumeric_limits as an additional argument?
which is why include/bits/limits_generic.h is used instead. See configure.in
> ===================================================================
> RCS file: /cvs/gcc/egcs/libstdc++-v3/mknumeric_limits,v
> retrieving revision 1.2
> diff -c -p -r1.2 mknumeric_limits
> *** mknumeric_limits 2000/05/01 00:14:10 1.2
> --- mknumeric_limits 2000/10/12 20:08:24
> *************** echo "running mknumeric_limits"
> *** 13,19 ****
> case `uname` in
> CYGWIN*)
> LDFLAGS='-nodefaultlibs -lcygwin -lc -lkernel32 -lgcc' ;;
> ! *)
> LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
> esac
>
> --- 13,27 ----
> case `uname` in
> CYGWIN*)
> LDFLAGS='-nodefaultlibs -lcygwin -lc -lkernel32 -lgcc' ;;
> ! AIX*)
> ! case $CXX in
> ! *pthread*)
> ! LDFLAGS='-nodefaultlibs -lgcc -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a' ;;
> ! *)
> ! LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
1) why is this necessary?
2) if it is necessary, why can't you just pass something like -pthread?
-benjamin