minix/share/mk/bsd.gcc.mk
Lionel Sambuc 84d9c625bf Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
2014-07-28 17:05:06 +02:00

34 lines
1,012 B
Makefile

# $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_)