xref: /netbsd-src/tools/gmp/Makefile (revision 4d5abbe83f525258eb479e5fca29f25cb943f379)
1#	$NetBSD: Makefile,v 1.3 2016/01/09 01:13:42 christos Exp $
2#
3
4GNUHOSTDIST=   ${.CURDIR}/../../external/lgpl3/gmp/dist
5
6CONFIGURE_ARGS+=--disable-shared
7
8.include "${.CURDIR}/../Makefile.gnuhost"
9
10# Don't override CFLAGS and CXXFLAGS, it breaks ABI detection.
11# PATH needs special treating since "make" tries to expand $PATH
12# when variable is used.
13CONFIGURE_ENV:=	${CONFIGURE_ENV:NPATH=*:NCFLAGS=*:NCXXFLAGS=*} \
14		PATH="${TOOLDIR:Q}/bin:$$PATH"
15
16# Force avoiding possibly non-executable install-sh.
17CONFIGURE_ENV+=	ac_cv_path_mkdir="${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install -d"
18