build lto

This commit is contained in:
christos 2015-01-07 02:02:44 +00:00
parent 836f08a84d
commit d5e8e308ec
3 changed files with 47 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2014/03/01 10:00:49 mrg Exp $
# $NetBSD: Makefile,v 1.6 2015/01/07 02:02:44 christos Exp $
NOOBJ=# defined
@ -16,6 +16,7 @@ SUBDIR+= host-libiberty .WAIT \
common common-target .WAIT \
libcpp libdecnumber .WAIT \
gcov cc1 cc1obj cc1plus cpp g++ gcc \
lto lto-wrapper \
include
.include <bsd.subdir.mk>

View File

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.1 2015/01/07 02:02:44 christos Exp $
NOMAN=1
PROG= lto-wrapper
SRCS= lto-wrapper.c
CPPFLAGS+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.backtrace"
.include "../Makefile.common-target"
.include "../Makefile.libcpp"
DPADD+= ${LIBIBERTYOBJ}/libiberty.a
LDADD+= ${LIBIBERTYOBJ}/libiberty.a
# VER_CPPFLAGS from Makefile.inc
LDADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
.PATH: ${DIST}/gcc ${DIST}/gcc/c ${DIST}/gcc/c-family ${DIST}/gcc/config
.PATH: ${G_out_file:H}

22
external/gpl3/gcc/usr.bin/lto1/Makefile vendored Normal file
View File

@ -0,0 +1,22 @@
# $NetBSD: Makefile,v 1.1 2015/01/07 02:02:44 christos Exp $
PROG= lto1
SRCS= lto-partition.c lto-object.c lto.c lto-lang.c attribs.c main.c
CPPFLAGS+= -DPREFIX=\"/usr\"
.include "../Makefile.backend"
.include "../Makefile.backtrace"
.include "../Makefile.common"
.include "../Makefile.common-target"
.include "../Makefile.libcpp"
.include "../Makefile.libdecnumber"
.include "../Makefile.libiberty"
LDADD+= ${LIBIBERTYOBJ}/libiberty.a
DPADD+= ${LIBIBERTYOBJ}/libiberty.a
LDADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} -lintl -lz -lm
DPADD+= ${LIBIBERTY} ${LIBMPC} ${LIBMPFR} ${LIBGMP} ${LIBINTL} ${LIBZ} ${LIBM}
.PATH: ${DIST}/gcc/lto ${DIST}/gcc # ${DIST}/gcc/c ${DIST}/gcc/c-family ${DIST}/gcc/config
.PATH: ${G_out_file:H}