naddy 6db9d64844 devel/avr32/binutils, gcc-bootstrap, gcc: fix build with -fno-common
binutils:
Since linkrelax is already defined as a global variable, it is
already initialized to 0, so we can simply drop this initialization.

gcc-bootstrap, gcc:
Use the mechanism provided by the .opt file processing to initialize
these globals.

ok gnezdo@
2021-02-14 18:13:59 +00:00

57 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2021/02/14 18:13:59 naddy Exp $
COMMENT = Atmel AVR 32-bit gcc
V = 4.4.7
DISTNAME = avr32-gcc-${V}
REVISION = 2
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB = c gmp mpfr
DIST_SUBDIR = gcc
AUTOCONF_VERSION = 2.59
CONFIGURE_ARGS = --disable-libssp \
--disable-threads \
--disable-libstdcxx-pch \
--with-gmp=${LOCALBASE} \
--with-mpfr-lib=${LOCALBASE} \
--with-mpfr-include=${LOCALBASE} \
--enable-languages=c,c++ \
--enable-__cxa_atexit \
--with-dwarf2 \
--enable-version-specific-runtime-libs \
--with-newlib
MAKE_ENV = lt_cv_path_SED=/usr/bin/sed
WRKDIST = ${WRKDIR}/gcc-${V}
BUILD_DEPENDS = devel/avr32/binutils \
devel/avr32/newlib \
${MODGNU_AUTOCONF_DEPENDS}
RUN_DEPENDS = devel/avr32/binutils \
devel/avr32/newlib \
devel/avr32/headers
LIB_DEPENDS = devel/gmp \
devel/mpfr
CFLAGS += -fgnu89-inline
SEPARATE_BUILD = Yes
.if ${MACHINE_ARCH} == "powerpc64"
PATCH_LIST = patch-* vecstep-*
.endif
# This file confuses 'make update-patches'
post-extract:
rm ${WRKSRC}/gcc/config/avr32/avr32.c.orig
# Fix configure scripts missing configure.in patches
do-gen:
cd ${WRKSRC}/gcc; ${SETENV} ${AUTOCONF_ENV} ${AUTOCONF}
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/lib/gcc/avr32/${V}/include*
.include <bsd.port.mk>