Module Name: src Committed By: mrg Date: Fri Jun 1 21:46:19 UTC 2018
Modified Files: src/external/lgpl3/gmp: README Log Message: commit some note updates i wrote last august. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/external/lgpl3/gmp/README 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/README diff -u src/external/lgpl3/gmp/README:1.7 src/external/lgpl3/gmp/README:1.8 --- src/external/lgpl3/gmp/README:1.7 Thu Aug 17 23:00:38 2017 +++ src/external/lgpl3/gmp/README Fri Jun 1 21:46:18 2018 @@ -1,4 +1,4 @@ -$NetBSD: README,v 1.7 2017/08/17 23:00:38 mrg Exp $ +$NetBSD: README,v 1.8 2018/06/01 21:46:18 mrg Exp $ GMP in NetBSD. We need GMP for GCC >= 4.2. @@ -25,11 +25,11 @@ There are a few steps to this: some of these files might have src/obj references. in particular fix GMP_MPARAM_H_SUGGEST to start from ./mpn/... and make sure - we #define __GMP_CC to "gcc -std=gnu99", and make sure that + we #define __GMP_CC to just "gcc", and make sure that CONFIG_TOP_SRCDIR is not defined in config.m4 - XXX make this automatic - + the "Makefile.netbsd-gmp" has a "copy-files" target that performs + these tasks. - parse the ./configure output and note all created symlinks for mpn. these need to be converted into a new Makefile.inc. @@ -43,12 +43,15 @@ There are a few steps to this: used is m4 to parse, and we and create .s files from the .asm files that we then we feed into $CC. -The amd64 port is a good reference to compare. + this part needs to be automated, but requires that the first + part's ./configure output be stored for it. this is not done. -This mips64* ports need some minor hacks to the generated gmp*.h -files to fix their library builds for compat issues. See these -files in: - http://mail-index.netbsd.org/source-changes/2011/07/10/msg024467.html + it would be good to convert the Makefile.inc into a pair of + files -- srcs.mk generated from build-gmp-Makefile.inc.awk, and + the remaining static part of the Makefile.inc left with the + include of srcs.mk. + +The amd64 port is a good reference to compare. This is still a work in progress and methods used to build may be @@ -56,4 +59,4 @@ changed at any time. m...@netbsd.org -- 2011/06/22 +- 2017/08/22