This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Re: [PATCH] mknumeric_limits for AIX


> 	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


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