Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/gcc add libgomp support. needed by "cc -fopenmp", tha...



details:   https://anonhg.NetBSD.org/src/rev/5c765b028d98
branches:  trunk
changeset: 769736:5c765b028d98
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Sep 21 02:15:18 2011 +0000

description:
add libgomp support.  needed by "cc -fopenmp", that koffice 2.3 wants to use.

diffstat:

 tools/gcc/Makefile        |  19 ++++++++++++-------
 tools/gcc/README.mknative |   4 +++-
 tools/gcc/mknative-gcc    |  17 ++++++++++++++++-
 3 files changed, 31 insertions(+), 9 deletions(-)

diffs (85 lines):

diff -r f1d8045d3a67 -r 5c765b028d98 tools/gcc/Makefile
--- a/tools/gcc/Makefile        Wed Sep 21 02:14:38 2011 +0000
+++ b/tools/gcc/Makefile        Wed Sep 21 02:15:18 2011 +0000
@@ -1,19 +1,24 @@
-#      $NetBSD: Makefile,v 1.44 2011/07/10 15:28:26 mrg Exp $
+#      $NetBSD: Makefile,v 1.45 2011/09/21 02:15:18 mrg Exp $
 
 .include <bsd.own.mk>
 
 GCC_LANGUAGES=c c++ objc
 MODULE=                        gcc4
-.if ${HAVE_GCC} == 45
-MKNATIVE_TARGET=       gcc45
-GNUHOSTDIST=           ${.CURDIR}/../../external/gpl3/gcc/dist
-.else
-MKNATIVE_TARGET=       gcc4
-.endif
+
 MKNATIVE_CONFIG_TARGET_LIBS= \
        configure-target-libiberty \
        configure-target-libstdc++-v3 \
        configure-target-libobjc
+
+.if ${HAVE_GCC} == 45
+MKNATIVE_TARGET=       gcc45
+GNUHOSTDIST=           ${.CURDIR}/../../external/gpl3/gcc/dist
+MKNATIVE_CONFIG_TARGET_LIBS+= \
+       configure-target-libgomp
+.else
+MKNATIVE_TARGET=       gcc4
+.endif
+
 BINENV=                /usr/bin/env -i
 
 VAX_CONFIGURE_ARGS=
diff -r f1d8045d3a67 -r 5c765b028d98 tools/gcc/README.mknative
--- a/tools/gcc/README.mknative Wed Sep 21 02:14:38 2011 +0000
+++ b/tools/gcc/README.mknative Wed Sep 21 02:15:18 2011 +0000
@@ -1,4 +1,6 @@
-$NetBSD: README.mknative,v 1.8 2011/06/21 04:11:12 mrg Exp $
+$NetBSD: README.mknative,v 1.9 2011/09/21 02:15:18 mrg Exp $
+
+XXX THIS FILE DOES NOT DESCRIBE GCC 4.5 METHODS PROPERLY XXX
 
 This file describes how to bootstrap the native toolchain on a new NetBSD
 platform (and how to update the new toolchain files, if needed).  These
diff -r f1d8045d3a67 -r 5c765b028d98 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc    Wed Sep 21 02:14:38 2011 +0000
+++ b/tools/gcc/mknative-gcc    Wed Sep 21 02:15:18 2011 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mknative-gcc,v 1.62 2011/08/17 18:34:13 matt Exp $
+#      $NetBSD: mknative-gcc,v 1.63 2011/09/21 02:15:18 mrg Exp $
 #
 # Shell script for generating all the constants needed for a native
 # platform build of src/gnu/dist/gcc.
@@ -452,6 +452,20 @@
                <$_TMPDIR/libdecnumber/config.h
 }
 
+##### lib/libgomp #####
+
+get_libgomp () {
+       _subdir="$1"
+
+       mkdir -p $_OUTDIR/lib/$_subdir/arch/$MACHINE_ARCH
+       write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/config.h \
+               <$_TMPDIR/$_PLATFORM/libgomp/config.h
+       write_c $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/libgomp_f.h \
+               <$_TMPDIR/$_PLATFORM/libgomp/libgomp_f.h
+       write_mk $_OUTDIRBASE/lib/$_subdir/arch/$MACHINE_ARCH/libgomp.spec \
+               <$_TMPDIR/$_PLATFORM/libgomp/libgomp.spec
+}
+
 ##### gnu/lib/libobjc #####
 
 get_libobjc () {
@@ -700,6 +714,7 @@
        get_libobjc libobjc
        get_libstdcxx_v3 libstdc++-v3
        get_libdecnumber libdecnumber
+       get_libgomp libgomp
        exit 0
        ;;
 



Home | Main Index | Thread Index | Old Index