EAPI=7
-inherit bsdmk multilib-minimal toolchain-funcs
+inherit flag-o-matic multilib-minimal toolchain-funcs
DESCRIPTION="crtbegin.o/crtend.o from NetBSD CSU for GCC-free toolchain"
HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/csu/"
RESTRICT="!test? ( test )"
BDEPEND="app-arch/xz-utils
+ virtual/pmake
test? ( sys-devel/clang )"
S=${WORKDIR}/${P}/lib/csu
# we only need those files; crt1 and friends are provided by libc
opts+=( crtbegin.o crtbeginS.o crtend.o )
- bsdmk_src_compile "${opts[@]}"
+ bmake ${MAKEOPTS} "${opts[@]}" ${EXTRA_EMAKE} || die
ln -s crtbegin.o crtbeginT.o || die
ln -s crtend.o crtendS.o || die