pkgsrc/cross/mingw/Makefile.common
wiz 0b0f115748 Move remaining users of USE_CROSSBASE to just install into ${PREFIX}/cross.
To simplify infrastructure.

Ok joerg@

XXX: nios2-gcc3 loops endlessly during build, before and after change,
so untested.
XXX: nios2-gcc does not build on -current, in the same way before
and after the change, so untested.
2016-06-19 16:20:27 +00:00

27 lines
848 B
Text

# $NetBSD: Makefile.common,v 1.3 2016/06/19 16:20:27 wiz Exp $
#
# used by cross/mingw-gcc/buildlink3.mk
# used by cross/mingw-binutils/Makefile
# used by cross/mingw-gcc/Makefile
# used by cross/mingw-runtime-bin/Makefile
# used by cross/mingw-w32api-bin/Makefile
.if !defined(MINGW_MAKEFILECOMMON)
MINGW_MAKEFILECOMMON= # defined
MASTER_SITE_MINGW= ${MASTER_SITE_SOURCEFORGE:=mingw/}
MINGW_TARGET?= i386--mingw32
PLIST_SUBST+= MINGW_TARGET=${MINGW_TARGET:Q}
MAKE_ENV+= MINGW_TARGET=${MINGW_TARGET:Q}
CONFIGURE_ENV+= MINGW_TARGET=${MINGW_TARGET:Q}
PREPEND_PATH+= ${PREFIX}/cross/bin
.if defined(GNU_CONFIGURE)
GNU_CONFIGURE_PREFIX= ${PREFIX}/cross
CONFIGURE_ARGS+= --target=${MINGW_TARGET:Q}
# following line to avoid getting
# make: exec(i386--netbsdelf-ar) failed (No such file or directory)
USE_GNU_CONFIGURE_HOST= NO
.endif
.endif