 c8a0e2f4c6
			
		
	
	
		c8a0e2f4c6
		
	
	
	
	
		
			
			This commit finalizes support for cross compilation. The tools directory are all links to the actual tools and are built on the host system to build Minix. build.sh is the work horse that takes care of all environment settings. It's slightly adjusted for Minix. The /usr/src/Makefile has additional targets needed for cross compilation.
		
			
				
	
	
		
			37 lines
		
	
	
		
			920 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			920 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| $NetBSD$
 | |
| 
 | |
| --- libgfortran/intrinsics/c99_functions.c.orig	Thu Apr  9 23:23:07 2009
 | |
| +++ libgfortran/intrinsics/c99_functions.c
 | |
| @@ -1412,7 +1412,7 @@ ctanl (long double complex a)
 | |
|  #endif
 | |
|  
 | |
|  
 | |
| -#if !defined(HAVE_TGAMMA)
 | |
| +#if !defined(HAVE_TGAMMA) && defined(HAVE_NEXTAFTER)
 | |
|  #define HAVE_TGAMMA 1
 | |
|  
 | |
|  extern double tgamma (double); 
 | |
| @@ -1551,7 +1551,7 @@ tgamma (double x)
 | |
|  
 | |
|  
 | |
|  
 | |
| -#if !defined(HAVE_LGAMMA)
 | |
| +#if !defined(HAVE_LGAMMA) && defined(HAVE_NEXTAFTER)
 | |
|  #define HAVE_LGAMMA 1
 | |
|  
 | |
|  extern double lgamma (double); 
 | |
| --- libjava/configure.ac.orig	2011-02-25 16:08:27.000000000 +0100
 | |
| +++ libjava/configure.ac
 | |
| @@ -1011,6 +1011,11 @@
 | |
|  	THREADLDFLAGS=-pthread
 | |
|  	THREADSPEC=-lpthread
 | |
|  	;;
 | |
| +     *-*-netbsd*)
 | |
| +	# NetBSD should work with pthread.
 | |
| +	THREADLDFLAGS=-pthread
 | |
| +	THREADSPEC=-lpthread
 | |
| +	;;
 | |
|       alpha*-dec-osf* | hppa*-hp-hpux*)
 | |
|  	THREADCXXFLAGS=-pthread
 | |
|  	# boehm-gc needs some functions from librt, so link that too.
 |