openbsd-ports/devel/xtensa-elf/gcc/Makefile

54 lines
1.2 KiB
Makefile

BROKEN-sparc64= 'build/genmddeps /usr/ports/pobj/xtensa-elf-gcc-6.3.0/gcc-6.3.0/gcc/common.md /usr/ports/pobj/xtensa-elf-gcc-6.3.0/gcc-6.3.0/gcc/config/xtensa/xtensa.md > tmp-mddeps' 'Illegal instruction (core dumped)'
COMMENT= gcc for xtensa-elf cross-development
VERSION= 6.3.0
DISTNAME= gcc-${VERSION}
PKGNAME= ${CONFIG}-gcc-${VERSION}
REVISION= 2
SUBST_VARS+= VERSION
WANTLIB= ${COMPILER_LIBCXX} c gmp m mpc mpfr
DIST_SUBDIR= gcc
MASTER_SITES= ${MASTER_SITE_GCC:=releases/gcc-$(VERSION)/}
COMPILER = base-clang ports-gcc base-gcc
.if ${MACHINE_ARCH} == "powerpc64"
PATCH_LIST = patch-* vecstep-*
.endif
BUILD_DEPENDS+= devel/bison \
devel/xtensa-elf/binutils
LIB_DEPENDS= devel/mpfr \
devel/libmpc
RUN_DEPENDS = devel/xtensa-elf/binutils
CONFIGURE_ARGS+=--enable-languages=c \
--with-newlib \
--with-gmp="${LOCALBASE}" \
--disable-libstdcxx-pch \
--disable-libstdc__-v3 \
--disable-libssp \
--disable-libstdcxx \
--disable-libcc1 \
--disable-lto
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
SEPARATE_BUILD= Yes
USE_GMAKE= Yes
YACC= bison
TEST_DEPENDS=devel/dejagnu
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/gcc/${CONFIG}/${VERSION}/
.include <bsd.port.mk>