[BACK]Return to bsd.gcc.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

File: [cvs.NetBSD.org] / src / share / mk / bsd.gcc.mk (download)

Revision 1.10, Mon Dec 10 23:49:39 2012 UTC (22 months, 1 week ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.9: +5 -1 lines

Add more external dependencies for crtstuff

#	$NetBSD: bsd.gcc.mk,v 1.10 2012/12/10 23:49:39 pooka Exp $

.if !defined(_BSD_GCC_MK_)
_BSD_GCC_MK_=1

.if defined(EXTERNAL_TOOLCHAIN)
_GCC_CRTBEGIN!=		${CC} --print-file-name=crtbegin.o
.ifndef _GCC_CRTBEGINS
_GCC_CRTBEGINS!=	${CC} --print-file-name=crtbeginS.o
.endif
_GCC_CRTEND!=		${CC} --print-file-name=crtend.o
.ifndef _GCC_CRTENDS
_GCC_CRTENDS!=		${CC} --print-file-name=crtendS.o
.endif
.ifndef _GCC_CRTI
_GCC_CRTI!=		${CC} --print-file-name=crti.o
.endif
.ifndef _GCC_CRTN
_GCC_CRTN!=		${CC} --print-file-name=crtn.o
.endif
_GCC_CRTDIR!=		dirname ${_GCC_CRTBEGIN}
_GCC_LIBGCCDIR!=	dirname `${CC} --print-libgcc-file-name`
.else
_GCC_CRTBEGIN?=		${DESTDIR}/usr/lib/crtbegin.o
_GCC_CRTBEGINS?=	${DESTDIR}/usr/lib/crtbeginS.o
_GCC_CRTEND?=		${DESTDIR}/usr/lib/crtend.o
_GCC_CRTENDS?=		${DESTDIR}/usr/lib/crtendS.o
_GCC_CRTI?=		${DESTDIR}/usr/lib/crti.o
_GCC_CRTN?=		${DESTDIR}/usr/lib/crtn.o
_GCC_CRTDIR?=		${DESTDIR}/usr/lib
_GCC_LIBGCCDIR?=	${DESTDIR}/usr/lib
.endif

.endif	# ! defined(_BSD_GCC_MK_)