Module Name:    src
Committed By:   mrg
Date:           Sat Sep 26 20:58:48 UTC 2020

Modified Files:
        src/external/lgpl3/gmp: Makefile.netbsd-gmp build-gmp-Makefile.inc.awk

Log Message:
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'.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/lgpl3/gmp/Makefile.netbsd-gmp
cvs rdiff -u -r1.4 -r1.5 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk

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

Modified files:

Index: src/external/lgpl3/gmp/Makefile.netbsd-gmp
diff -u src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.5 src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.6
--- src/external/lgpl3/gmp/Makefile.netbsd-gmp:1.5	Tue Aug 22 09:57:18 2017
+++ src/external/lgpl3/gmp/Makefile.netbsd-gmp	Sat Sep 26 20:58:48 2020
@@ -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 @@ all:
 
 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

Index: src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk
diff -u src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.4 src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.5
--- src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk:1.4	Tue Aug 22 09:57:18 2017
+++ src/external/lgpl3/gmp/build-gmp-Makefile.inc.awk	Sat Sep 26 20:58:48 2020
@@ -1,6 +1,6 @@
 #! /usr/bin/awk -f
 
-/^config.status: linking/ {
+/^config.status(:[0-9]*:|:) linking/ {
 	# $3 = src
 	# $5 = dst
 

Reply via email to