Source-Changes-HG archive

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

[src/trunk]: src/external/lgpl3/gmp update slightly to enable 'native-gmp' ta...



details:   https://anonhg.NetBSD.org/src/rev/efd4a4f0a233
branches:  trunk
changeset: 944340:efd4a4f0a233
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Sep 26 20:58:48 2020 +0000

description:
update slightly to enable 'native-gmp' target from tools/gmp to work.
call the awk script on 'config.log', which has (almost) the same output
as the stdout of ./configure, and automatically store it as 'srcs.mk'.

diffstat:

 external/lgpl3/gmp/Makefile.netbsd-gmp        |  3 ++-
 external/lgpl3/gmp/build-gmp-Makefile.inc.awk |  2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0fed330b88b3 -r efd4a4f0a233 external/lgpl3/gmp/Makefile.netbsd-gmp
--- a/external/lgpl3/gmp/Makefile.netbsd-gmp    Sat Sep 26 20:56:53 2020 +0000
+++ b/external/lgpl3/gmp/Makefile.netbsd-gmp    Sat Sep 26 20:58:48 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.netbsd-gmp,v 1.5 2017/08/22 09:57:18 mrg Exp $
+# $NetBSD: Makefile.netbsd-gmp,v 1.6 2020/09/26 20:58:48 mrg Exp $
 
 # hack makefile to help build gmp ./configure
 
@@ -25,6 +25,7 @@
 
 copy-files:
        cd build && cp gmp.h gmp-mparam.h config.h config.m4 ${ARCHDIR}
+       awk -f ${NETBSDSRCDIR}/external/lgpl3/gmp/build-gmp-Makefile.inc.awk < build/config.log > ${ARCHDIR}/srcs.mk
        sed -i -e 's/define.*CONFIG_TOP_SRCDIR.*//' ${ARCHDIR}/config.m4
        sed -i -e 's/__GMP_CC.*/__GMP_CC "gcc"/' ${ARCHDIR}/gmp.h
        sed -i -e 's/GMP_MPARAM_H_SUGGEST[      ]"\/.*dist\/mpn/GMP_MPARAM_H_SUGGEST ".\/mpn/' ${ARCHDIR}/config.h
diff -r 0fed330b88b3 -r efd4a4f0a233 external/lgpl3/gmp/build-gmp-Makefile.inc.awk
--- a/external/lgpl3/gmp/build-gmp-Makefile.inc.awk     Sat Sep 26 20:56:53 2020 +0000
+++ b/external/lgpl3/gmp/build-gmp-Makefile.inc.awk     Sat Sep 26 20:58:48 2020 +0000
@@ -1,6 +1,6 @@
 #! /usr/bin/awk -f
 
-/^config.status: linking/ {
+/^config.status(:[0-9]*:|:) linking/ {
        # $3 = src
        # $5 = dst
 



Home | Main Index | Thread Index | Old Index