Source-Changes-HG archive

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

[src/trunk]: src/tools/gmp initial working version of native-gmp support.



details:   https://anonhg.NetBSD.org/src/rev/f0d5da895367
branches:  trunk
changeset: 955327:f0d5da895367
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Sep 26 20:56:53 2020 +0000

description:
initial working version of native-gmp support.

does not use mknative.common yet, so always updates files and does
not mark them with NetBSD rcsid.  (not a regression from the manual
version at least.)

diffstat:

 tools/gmp/Makefile |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 03bef6e3ecfd -r f0d5da895367 tools/gmp/Makefile
--- a/tools/gmp/Makefile        Sat Sep 26 20:38:27 2020 +0000
+++ b/tools/gmp/Makefile        Sat Sep 26 20:56:53 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2016/01/09 01:13:42 christos Exp $
+#      $NetBSD: Makefile,v 1.4 2020/09/26 20:56:53 mrg Exp $
 #
 
 GNUHOSTDIST=   ${.CURDIR}/../../external/lgpl3/gmp/dist
@@ -15,3 +15,18 @@
 
 # Force avoiding possibly non-executable install-sh.
 CONFIGURE_ENV+=        ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
+
+# mknative-gmp support
+#
+# XXX early version; does not use mknative.common yet.
+
+native-gmp: .native/.configure_done
+       @echo 'Extracting GNU GMP configury for a native toolchain.'
+       (cd ${.OBJDIR}/.native && \
+        ${MAKE} -f ${.CURDIR}/../../external/lgpl3/gmp/Makefile.netbsd-gmp copy-files)
+       @echo 'HA HA, only joking. Manual fixes maybe needed now.'
+
+.native/.configure_done: ${_GNU_CFGSRC} ${.CURDIR}/Makefile
+       mkdir .native 2>/dev/null || true
+       (cd ${.OBJDIR}/.native && \
+        ${MAKE} -f ${.CURDIR}/../../external/lgpl3/gmp/Makefile.netbsd-gmp all)



Home | Main Index | Thread Index | Old Index