head	1.6;
access;
symbols
	netbsd-11-0-RC7:1.6
	netbsd-11-0-RC6:1.6
	netbsd-11-0-RC5:1.6
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.2
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.5.2.1
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.4
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.3
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.2
	netbsd-10-base:1.5
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.4
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.4.0.2
	cjep_staticlib_x-base:1.4
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.20
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.3
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.18
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.3
	netbsd-8-1-RC1:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.16
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.3.0.14
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.3.0.12
	matt-nb8-mediatek-base:1.3
	perseant-stdc-iso10646:1.3.0.10
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.8
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.6
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.2.0.16
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.3.0.4
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.3
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.3
	netbsd-7-nhusb:1.2.0.14
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.2
	pgoyette-localcount-base:1.3
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.12
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	netbsd-6-0-6-RELEASE:1.1.4.1
	netbsd-6-1-5-RELEASE:1.1.4.1
	netbsd-7:1.2.0.10
	netbsd-7-base:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.1.2.1
	netbsd-6-1-4-RELEASE:1.1.4.1
	netbsd-6-0-5-RELEASE:1.1.4.1
	tls-earlyentropy:1.2.0.8
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-6-1-3-RELEASE:1.1.4.1
	netbsd-6-0-4-RELEASE:1.1.4.1
	netbsd-6-1-2-RELEASE:1.1.4.1
	netbsd-6-0-3-RELEASE:1.1.4.1
	netbsd-6-1-1-RELEASE:1.1.4.1
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.4
	riastradh-drm2-base:1.2
	netbsd-6-1:1.1.4.1.0.6
	netbsd-6-0-2-RELEASE:1.1.4.1
	netbsd-6-1-RELEASE:1.1.4.1
	netbsd-6-1-RC4:1.1.4.1
	netbsd-6-1-RC3:1.1.4.1
	agc-symver:1.2.0.6
	agc-symver-base:1.2
	netbsd-6-1-RC2:1.1.4.1
	netbsd-6-1-RC1:1.1.4.1
	yamt-pagecache-base8:1.2
	netbsd-6-0-1-RELEASE:1.1.4.1
	yamt-pagecache-base7:1.2
	matt-nb6-plus-nbase:1.1.4.1
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.1.4.1.0.4
	netbsd-6-0-RELEASE:1.1.4.1
	netbsd-6-0-RC2:1.1.4.1
	tls-maxphys:1.2.0.2
	tls-maxphys-base:1.2
	matt-nb6-plus:1.1.4.1.0.2
	matt-nb6-plus-base:1.1.4.1
	netbsd-6-0-RC1:1.1.4.1
	yamt-pagecache-base5:1.2
	yamt-pagecache-base4:1.2
	netbsd-6:1.1.0.4
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.2
	yamt-pagecache-base:1.1;
locks; strict;
comment	@# @;


1.6
date	2024.09.28.21.18.55;	author bad;	state Exp;
branches;
next	1.5;
commitid	uVIxCadQheMbnCrF;

1.5
date	2021.09.18.01.47.10;	author christos;	state Exp;
branches
	1.5.2.1
	1.5.4.1;
next	1.4;
commitid	NKw39S32w03lsn9D;

1.4
date	2020.09.26.20.56.53;	author mrg;	state Exp;
branches;
next	1.3;
commitid	qBpXKylNu6bjiBpC;

1.3
date	2016.01.09.01.13.42;	author christos;	state Exp;
branches;
next	1.2;
commitid	SKKZy4dEZHMx6cQy;

1.2
date	2012.04.12.01.05.31;	author mrg;	state Exp;
branches;
next	1.1;

1.1
date	2011.06.20.05.56.46;	author mrg;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.5.2.1
date	2024.10.03.12.14.06;	author martin;	state Exp;
branches;
next	;
commitid	KP7MzC5eTaeQddsF;

1.5.4.1
date	2025.08.02.05.58.23;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.1.2.1
date	2012.04.17.00.09.28;	author yamt;	state Exp;
branches;
next	;

1.1.4.1
date	2012.05.07.03.08.35;	author riz;	state Exp;
branches;
next	;


desc
@@


1.6
log
@configure tools/gmp with --disable-assembly on x86_64 macOS 14.

works around the assembler routines being compile with 8 byte alignment
when 16 byte alignment is required.

patch by mrg@@ who asked me to commit after testing.

addresses PR toolchain/58707.

pullup netbsd-10.
@
text
@#	$NetBSD: Makefile,v 1.5 2021/09/18 01:47:10 christos Exp $
#

GNUHOSTDIST=   ${.CURDIR}/../../external/lgpl3/gmp/dist

CONFIGURE_ARGS+=--disable-shared

CPPFLAGS+=	${HOST_CPPFLAGS}

.include "${.CURDIR}/../Makefile.gnuhost"

# GMP uses 8-byte alignment for 16-byte align-requiring things that break
# the build on modern macOS targets, turn off assembly on x86-64 for now.
# https://trac.macports.org/ticket/70859
.if ${BUILD_OSTYPE} == "Darwin"
BUILD_MACHINE!=	uname -m
. if ${BUILD_MACHINE} == "x86_64"
CONFIGURE_ARGS+=	--disable-assembly
. endif
.endif

# Don't override CFLAGS and CXXFLAGS, it breaks ABI detection.
# PATH needs special treating since "make" tries to expand $PATH
# when variable is used.
CONFIGURE_ENV:=	${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \
		PATH="${TOOLDIR:Q}/bin:$$PATH"

# 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)
@


1.5
log
@Patch the build script and toolchain to allow passing through
HOST_CPPFLAGS, HOST_CXXFLAGS, but not LIBRARY_PATH because it breaks
the build. These variables are necessary to support building NetBSD
from a GNU Guix or NixOS host, where /usr/include, /lib, and all
but /bin/sh do not exist.  In many cases, support for HOST_CPPFLAGS
was incomplete. From Ryan Sundberg
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2020/09/26 20:56:53 mrg Exp $
d12 10
@


1.5.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2024/09/28 21:18:55 bad Exp $
a11 10
# GMP uses 8-byte alignment for 16-byte align-requiring things that break
# the build on modern macOS targets, turn off assembly on x86-64 for now.
# https://trac.macports.org/ticket/70859
.if ${BUILD_OSTYPE} == "Darwin"
BUILD_MACHINE!=	uname -m
. if ${BUILD_MACHINE} == "x86_64"
CONFIGURE_ARGS+=	--disable-assembly
. endif
.endif

@


1.5.2.1
log
@Pull up following revision(s) (requested by bad in ticket #921):

	tools/gmp/Makefile: revision 1.6

configure tools/gmp with --disable-assembly on x86_64 macOS 14.
works around the assembler routines being compile with 8 byte alignment
when 16 byte alignment is required.

patch by mrg@@ who asked me to commit after testing.
addresses PR toolchain/58707.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2021/09/18 01:47:10 christos Exp $
a11 10
# GMP uses 8-byte alignment for 16-byte align-requiring things that break
# the build on modern macOS targets, turn off assembly on x86-64 for now.
# https://trac.macports.org/ticket/70859
.if ${BUILD_OSTYPE} == "Darwin"
BUILD_MACHINE!=	uname -m
. if ${BUILD_MACHINE} == "x86_64"
CONFIGURE_ARGS+=	--disable-assembly
. endif
.endif

@


1.4
log
@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.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2016/01/09 01:13:42 christos Exp $
d8 2
@


1.3
log
@Save a couple of dollars now that make is fixed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2012/04/12 01:05:31 mrg Exp $
d18 15
@


1.2
log
@force ac_cv_path_mkdir to be set to nbinstall -d.  this will avoid
gmp/configure from trying to use its install-sh for mkdir -p, and
should fix sourcesets created tarball builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/06/20 05:56:46 mrg Exp $
d14 1
a14 1
		PATH="${TOOLDIR:Q}/bin:$$$$PATH"
@


1.1
log
@tools build framework for gmp, mpfr and mpc.  from chuq.
@
text
@d1 1
a1 1
#	$NetBSD$
d15 3
@


1.1.4.1
log
@Pull up following revision(s) (requested by mrg in ticket #207):
	tools/gmp/Makefile: revision 1.2
	tools/mpfr/Makefile: revision 1.2
	tools/file/Makefile: revision 1.7
	tools/binutils/Makefile: revision 1.22
	tools/mpc/Makefile: revision 1.2
force ac_cv_path_mkdir to be set to nbinstall -d.  this will avoid
gmp/configure from trying to use its install-sh for mkdir -p, and
should fix sourcesets created tarball builds.
force set ac_cv_mkdir_path to our install -d program.
fixes the remaining issues with 'sourcesets' and 'tools'.
@
text
@a14 3

# Force avoiding possibly non-executable install-sh.
CONFIGURE_ENV+=	ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
@


1.1.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/06/20 05:56:46 mrg Exp $
a14 3

# Force avoiding possibly non-executable install-sh.
CONFIGURE_ENV+=	ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
@


