-# $OpenBSD: Makefile.bsd-wrapper,v 1.18 2017/07/10 21:30:37 espie Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.19 2018/09/14 13:37:52 naddy Exp $
LIB= iberty
CPPFLAGS+= -DHAVE_CONFIG_H -I$(.CURDIR)/src -I$(.CURDIR)/include -I$(.OBJDIR)
+XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDFLAGS}"
HOST_FILES!= cat $(.OBJDIR)/needed-list 2>/dev/null||true
BUILDFIRST = needed-list
needed-list: config.status
- ${MAKE} ${GNUCFLAGS} CC="${CC}" needed-list
+ ${MAKE} ${XCFLAGS} needed-list
config.status: Makefile.in configure
PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
MAKEINFO='makeinfo --no-split' \
+ ${XCFLAGS} \
/bin/sh ${.CURDIR}/src/configure \
--prefix=/usr --with-local-prefix=/usr ${CF} \
&& touch config.status
-# $OpenBSD: Makefile.bsd-wrapper,v 1.15 2018/07/26 13:20:53 kettenis Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.16 2018/09/14 13:37:52 naddy Exp $
.include <bsd.own.mk>
CONF_SUBDIRS= opcodes bfd
CFLAGS+= ${PIE_DEFAULT}
+XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}"
# This allows moving the whole binutils installation around for
# testing purposes
PREFIX=/usr
all: config.status
SUBDIRS='${SUBDIRS}' \
CONFIGURE_HOST_MODULES='${CONFIGURE_HOST_MODULES}' \
- ${MAKE} CC="${CC}" \
- CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS=${LDSTATIC} \
+ ${MAKE} ${XCFLAGS} \
scriptdir=${PREFIX}/libdata \
tooldir=${PREFIX} \
MAKEINFO='makeinfo --no-split' \
do-config: .USE
PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
MAKEINFO='makeinfo --no-split' \
+ ${XCFLAGS} \
sh ${.CURDIR}/configure --prefix=${PREFIX} \
--infodir='$${prefix}/share/info' \
--disable-nls --disable-gdbtk --disable-install-libbfd ${CF} \
sed -e 's,SUBDIRS *=,SUBDIRS ?=,' <Makefile >Makefile.tmp && \
mv -f Makefile.tmp Makefile
cd ${.OBJDIR} && \
+ ${XCFLAGS} \
${MAKE} ${CONFIGURE_MODULES}
gas/doc/as.1: config.status
-# $OpenBSD: Makefile.bsd-wrapper,v 1.86 2017/06/12 18:49:34 espie Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.87 2018/09/14 13:37:52 naddy Exp $
.include <bsd.own.mk>
CFLAGS+= ${PIE_DEFAULT}
+XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}"
# This allows moving the whole binutils installation around for
# testing purposes
PREFIX=/usr
all: config.status
SUBDIRS='${SUBDIRS}' \
CONFIGURE_HOST_MODULES='${CONFIGURE_HOST_MODULES}' \
- ${MAKE} CC="${CC}" \
- CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS=${LDSTATIC} \
+ ${MAKE} ${XCFLAGS} \
scriptdir=${PREFIX}/libdata \
tooldir=${PREFIX} \
MAKEINFO='makeinfo --no-split' \
do-config: .USE
PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
MAKEINFO='makeinfo --no-split' \
+ ${XCFLAGS} \
sh ${.CURDIR}/configure --prefix=${PREFIX} \
--infodir='$${prefix}/share/info' \
--disable-nls --disable-gdbtk --disable-install-libbfd ${CF} \
sed -e 's,SUBDIRS *=,SUBDIRS ?=,' <Makefile >Makefile.tmp && \
mv -f Makefile.tmp Makefile
cd ${.OBJDIR} && \
+ ${XCFLAGS} \
${MAKE} ${CONFIGURE_MODULES}
config: do-config
-# $OpenBSD: Makefile.bsd-wrapper,v 1.57 2018/07/11 16:38:03 naddy Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.58 2018/09/14 13:37:52 naddy Exp $
.include <bsd.own.mk>
MAN= man/cvs.1 man/cvs.5 man/cvsbug.8 man/rcs2log.1
-GNUCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" CPP="${CPP}"
+XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" CPP="${CPP}"
CLEANFILES= src/version.c lib/getdate.c lib/getdate.h macintosh/Makefile \
os2/Makefile zlib/Makefile \
windows-NT/SCC/Makefile emx/Makefile doc/CVSvn.texi \
LDFLAGS=${LDSTATIC}
all: config.status
- ${MAKE} ${GNUCFLAGS} LDFLAGS="${LDFLAGS}" all info
+ ${MAKE} ${XCFLAGS} LDFLAGS="${LDFLAGS}" all info
.FORCE: .IGNORE
INSTALL_DATA="${INSTALL} ${INSTALL_COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE}" \
ACLOCAL=true AUTOCONF=true AUTOMAKE=true AUTOHEADER=true \
MAKEINFO='makeinfo --no-split' \
+ ${XCFLAGS} \
ac_cv_path_ROFF='' \
sh ${.CURDIR}/configure --prefix=/usr --mandir=/usr/share/man \
--datadir=/usr/libdata ${CF}
INSTALL_DATA="${INSTALL} ${INSTALL_COPY} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE}" \
ACLOCAL=true AUTOCONF=true AUTOMAKE=true AUTOHEADER=true \
MAKEINFO='makeinfo --no-split' \
+ ${XCFLAGS} \
ac_cv_path_ROFF='' \
sh ${.CURDIR}/configure --prefix=/usr --mandir=/usr/share/man \
--datadir=/usr/libdata ${CF}
BEFOREMAN=config.status
install: maninstall
- ${MAKE} ${GNUCFLAGS} prefix=${DESTDIR}/usr \
+ ${MAKE} ${XCFLAGS} prefix=${DESTDIR}/usr \
infodir=/usr/share/info \
libexecdir=/usr/libexec \
bindir=/usr/bin INSTALL_MAN= install