ports/base/binutils/Makefile
Steve Wills b52a2cbd82 Fix cross build of base/ ports
This is a follow up to r461057 and fixes base/binutils and base/gcc in my
testing.

PR:		224217
Submitted by:	nwhitehorn (partially, I made additional changes)
Reviewed by:	bapt
2018-02-06 14:32:52 +00:00

28 lines
578 B
Makefile

# $FreeBSD$
PORTEPOCH= 0
CATEGORIES= base
PKGNAMEPREFIX= ${OPSYS:tl}-
VALID_CATEGORIES= base
COMMENT= GNU binary tools for base
MASTERDIR= ${.CURDIR}/../../devel/binutils
PLIST= ${.CURDIR}/pkg-plist.${TARGET_ARCH}
.if !defined(CROSS_TOOLCHAIN)
.error Please define CROSS_TOOLCHAIN before building
.endif
.if !defined(CROSS_SYSROOT)
.error Please define CROSS_SYSROOT before building
.endif
TARGET_ARCH= ${CROSS_TOOLCHAIN:C,-.*$,,}
BUTARGET= ${TARGET_ARCH}-unknown-${OPSYS:tl}${OSREL}
CONFIGURE_ARGS+= --disable-host-shared
PREFIX= /usr
.include "${MASTERDIR}/Makefile"