 0cdf705cc6
			
		
	
	
		0cdf705cc6
		
	
	
	
	
		
			
			-By adding MKGCC=yes and MKGCCCMDS=yes on the make commandline it is now possible to compile and install GCC on the system. Before doing this, if you are not using the build.sh script, you will need to call the fetch scripts in order to retrieve the sources of GCC and its dependencies. -Reduce difference with NetBSD share/mk Move Minix-specific parameters from bsd.gcc.mk to bsd.own.mk, which is anyway patched, so that bsd.gcc.mk is now aligned on the NetBSD version. -Clean libraries dependencies, compiles stdc++ only if gcc is also compiled (it is part of the gcc sources) -Correct minix.h header sequence, cleanup spec headers. -Fix cross-compilation from a 32bit host targeting MINIX/arm Change-Id: I1b234af18eed4ab5675188244e931b2a2b7bd943
		
			
				
	
	
		
			24 lines
		
	
	
		
			711 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			711 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| #	$NetBSD: Makefile.common,v 1.3 2011/06/28 04:03:16 mrg Exp $
 | |
| 
 | |
| DIST=		${NETBSDSRCDIR}/external/gpl3/gcc/dist
 | |
| GNUHOSTDIST=	${DIST}
 | |
| 
 | |
| LIBSTDCXXSRCS=	${G_SRC_SOURCES}
 | |
| LIBSUPCXXSRCS=	${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
 | |
| 
 | |
| CPPFLAGS+=	-I${DIST}/gcc
 | |
| CPPFLAGS+=	-I${DIST}/include
 | |
| CPPFLAGS+=	-I${DIST}/libstdc++-v3/libsupc++
 | |
| CPPFLAGS+=	-I${.CURDIR}/../libstdc++-v3_4/arch/${MACHINE_ARCH} -I.
 | |
| CPPFLAGS+=	-DHAVE_STDLIB_H -DHAVE_STRING_H
 | |
| 
 | |
| .if defined(__MINIX)
 | |
| CPPFLAGS+=	-I${DESTDIR}/usr/include/g++
 | |
| CPPFLAGS+=	-I${DESTDIR}/usr/include/gcc-4.5
 | |
| .endif #defined(__MINIX)
 | |
| 
 | |
| CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
 | |
| #CPPFLAGS.dyn-string.c=-DIN_GLIBCPP_V3
 | |
| 
 | |
| #BUILDSYMLINKS+=	${DIST}/libiberty/cp-demangle.c cxa_demangle.c
 |