e1fdad5e8b
We don't have a tool that strips tools -- we have only a tool that strips target programs. $TOOLDIR/bin/$PLATFORM-install supports -s by invoking the target-stripping tool, which chokes if you try to use it to strip tools on a sufficiently different cross build. So let's just not strip the pcc tool -- it's tiny enough that I'm not worried about its unstripped size!
20 lines
713 B
Makefile
20 lines
713 B
Makefile
# $NetBSD: Makefile,v 1.3 2016/03/30 23:36:45 riastradh Exp $
|
|
|
|
GNUHOSTDIST= ${.CURDIR}/../../external/bsd/pcc/dist/pcc
|
|
|
|
CONFIGURE_ENV+= CC=${HOST_CC:Q} \
|
|
CFLAGS=${HOST_CFLAGS:Q} \
|
|
CPPFLAGS=${HOST_CPPFLAGS:Q} \
|
|
CXX=${HOST_CXX:Q}
|
|
|
|
CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM}
|
|
CONFIGURE_ARGS+= --disable-stripping
|
|
CONFIGURE_ARGS+= --enable-tls
|
|
CONFIGURE_ARGS+= --includedir=/usr/include
|
|
CONFIGURE_ARGS+= --with-incdir=/usr/include
|
|
CONFIGURE_ARGS+= --with-libdir=/usr/lib
|
|
CONFIGURE_ARGS+= --with-assembler=${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as
|
|
CONFIGURE_ARGS+= --with-linker=${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld
|
|
|
|
.include "${.CURDIR}/../Makefile.gnuhost"
|