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]

[PATCH] mknumeric_limits for AIX


	Appended is a patch to allow the mknumeric_limits script to work
in the pthread multilib directories of 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?

David


	* mknumeric_limits (LDFLAGS): Add pthread libraries for AIX multilib.

Index: mknumeric_limits
===================================================================
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' ;;
! 	esac
! 	;;
!     *)
  	LDFLAGS='-nodefaultlibs -lgcc -lc' ;;
  esac
  

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