Module Name:    src
Committed By:   mrg
Date:           Wed Mar 16 05:47:43 UTC 2016

Modified Files:
        src/tools/gcc: Makefile

Log Message:
unwind.h has a new problem, and fix the grabbing of x86 specific files.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/tools/gcc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/gcc/Makefile
diff -u src/tools/gcc/Makefile:1.78 src/tools/gcc/Makefile:1.79
--- src/tools/gcc/Makefile:1.78	Tue Mar 15 21:38:32 2016
+++ src/tools/gcc/Makefile	Wed Mar 16 05:47:43 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.78 2016/03/15 21:38:32 mrg Exp $
+#	$NetBSD: Makefile,v 1.79 2016/03/16 05:47:43 mrg Exp $
 
 .include <bsd.own.mk>
 
@@ -87,13 +87,11 @@ BUILD_MAKE=${TOOL_GMAKE}
 
 MKNATIVE_CONFIG_TARGET_LIBS=
 
-.if ${HAVE_GCC} >= 50
 MKNATIVE_CONFIG_TARGET_LIBS+=	configure-target-libgcc
 MKNATIVE_CONFIG_TARGET_LIBS+=	configure-target-libgomp
+.if ${HAVE_GCC} == 53
 MKNATIVE_TARGET=	gcc5
 .elif ${HAVE_GCC} == 48
-MKNATIVE_CONFIG_TARGET_LIBS+=	configure-target-libgcc
-MKNATIVE_CONFIG_TARGET_LIBS+=	configure-target-libgomp
 MKNATIVE_TARGET=	gcc48
 .endif
 
@@ -195,6 +193,12 @@ NATIVE_CONFIGURE_ARGS+=	\
 			--with-sysroot=${DESTDIR}
 MKENV_BUILD_MAKE=cd .native && ${MKNATIVE_ENV} ${BUILD_MAKE}
 
+UNWIND_H=unwind.h
+# XXXGCC5
+.if ${HAVE_GCC} == 53
+UNWIND_H=
+.endif
+
 .native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile
 	mkdir .native 2>/dev/null || true
 	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
@@ -217,9 +221,10 @@ MKENV_BUILD_MAKE=cd .native && ${MKNATIV
 	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
 		(cd .native/gcc && ${MKNATIVE_ENV} ${BUILD_MAKE} -e tree-check.h config.h multilib.h gcov-iov.h)
 	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
-		(cd .native/gcc && ${MKNATIVE_ENV} ${BUILD_MAKE} -e libgcc.mvars tconfig.h unwind.h); \
+		(cd .native/gcc && ${MKNATIVE_ENV} ${BUILD_MAKE} -e libgcc.mvars tconfig.h ${UNWIND_H}); \
 		(cd .native && touch gcc/cc1obj gcc/cc1plus gcc/f771 gcc/libgcc.a gcc/libgcc_s.so)
-.if !empty(${EXTRA_GCC_TARGETS})
+.if defined(EXTRA_GCC_TARGETS)
+	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
 		(cd .native/gcc && ${MKNATIVE_ENV} ${BUILD_MAKE} -e ${EXTRA_GCC_TARGETS})
 .endif
 .for _lib in ${MKNATIVE_CONFIG_TARGET_LIBS}
@@ -242,11 +247,6 @@ MKENV_BUILD_MAKE=cd .native && ${MKNATIV
 			CPP=${CPP:Q}' '-I${DESTDIR}/usr/include \
 			all-local) && \
 	true
-.if 0
-	PATH=${TOOLDIR}/bin:$$PATH; export PATH; \
-		(cd .native/${MACHINE_GNU_PLATFORM}/libiberty && \
-			${MKNATIVE_ENV} ${BUILD_MAKE} needed-list)
-.endif
 	@touch $@
 
 clean: clean.native

Reply via email to