build lto
This commit is contained in:
parent
836f08a84d
commit
d5e8e308ec
|
@ -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>
|
||||
|
|
|
@ -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}
|
|
@ -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}
|
Loading…
Reference in New Issue