1.include "../../Makefile.inc1"
2.include "../Makefile.gld"
3
4PROG_CXX=	ld.gold
5SRCS=		main.cc ${GOLD_COMMON}
6CFLAGS+=	-I${.CURDIR}/../../block2/libgold
7LDADD=		${STD_LDADD}
8NOMAN=
9
10.if defined(TOOLCHAIN_THREADED)
11LDFLAGS+=	-pthread
12.endif
13
14# link-time optimization requires dlopen() which means ld cannot be built
15# statically and also support -plugin, not even for cross-tools.
16.if !defined(REALLY_NOSHARED)
17.undef NOSHARED
18.endif
19
20.include <bsd.prog.mk>
21