| @@ -1,29 +1,33 @@ | | | @@ -1,29 +1,33 @@ |
1 | # $NetBSD: bsd.gcc.mk,v 1.9 2012/12/10 23:48:38 pooka Exp $ | | 1 | # $NetBSD: bsd.gcc.mk,v 1.10 2012/12/10 23:49:39 pooka Exp $ |
2 | | | 2 | |
3 | .if !defined(_BSD_GCC_MK_) | | 3 | .if !defined(_BSD_GCC_MK_) |
4 | _BSD_GCC_MK_=1 | | 4 | _BSD_GCC_MK_=1 |
5 | | | 5 | |
6 | .if defined(EXTERNAL_TOOLCHAIN) | | 6 | .if defined(EXTERNAL_TOOLCHAIN) |
7 | _GCC_CRTBEGIN!= ${CC} --print-file-name=crtbegin.o | | 7 | _GCC_CRTBEGIN!= ${CC} --print-file-name=crtbegin.o |
8 | .ifndef _GCC_CRTBEGINS | | 8 | .ifndef _GCC_CRTBEGINS |
9 | _GCC_CRTBEGINS!= ${CC} --print-file-name=crtbeginS.o | | 9 | _GCC_CRTBEGINS!= ${CC} --print-file-name=crtbeginS.o |
10 | .endif | | 10 | .endif |
11 | _GCC_CRTEND!= ${CC} --print-file-name=crtend.o | | 11 | _GCC_CRTEND!= ${CC} --print-file-name=crtend.o |
12 | .ifndef _GCC_CRTENDS | | 12 | .ifndef _GCC_CRTENDS |
13 | _GCC_CRTENDS!= ${CC} --print-file-name=crtendS.o | | 13 | _GCC_CRTENDS!= ${CC} --print-file-name=crtendS.o |
14 | .endif | | 14 | .endif |
| | | 15 | .ifndef _GCC_CRTI |
15 | _GCC_CRTI!= ${CC} --print-file-name=crti.o | | 16 | _GCC_CRTI!= ${CC} --print-file-name=crti.o |
| | | 17 | .endif |
| | | 18 | .ifndef _GCC_CRTN |
16 | _GCC_CRTN!= ${CC} --print-file-name=crtn.o | | 19 | _GCC_CRTN!= ${CC} --print-file-name=crtn.o |
| | | 20 | .endif |
17 | _GCC_CRTDIR!= dirname ${_GCC_CRTBEGIN} | | 21 | _GCC_CRTDIR!= dirname ${_GCC_CRTBEGIN} |
18 | _GCC_LIBGCCDIR!= dirname `${CC} --print-libgcc-file-name` | | 22 | _GCC_LIBGCCDIR!= dirname `${CC} --print-libgcc-file-name` |
19 | .else | | 23 | .else |
20 | _GCC_CRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o | | 24 | _GCC_CRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o |
21 | _GCC_CRTBEGINS?= ${DESTDIR}/usr/lib/crtbeginS.o | | 25 | _GCC_CRTBEGINS?= ${DESTDIR}/usr/lib/crtbeginS.o |
22 | _GCC_CRTEND?= ${DESTDIR}/usr/lib/crtend.o | | 26 | _GCC_CRTEND?= ${DESTDIR}/usr/lib/crtend.o |
23 | _GCC_CRTENDS?= ${DESTDIR}/usr/lib/crtendS.o | | 27 | _GCC_CRTENDS?= ${DESTDIR}/usr/lib/crtendS.o |
24 | _GCC_CRTI?= ${DESTDIR}/usr/lib/crti.o | | 28 | _GCC_CRTI?= ${DESTDIR}/usr/lib/crti.o |
25 | _GCC_CRTN?= ${DESTDIR}/usr/lib/crtn.o | | 29 | _GCC_CRTN?= ${DESTDIR}/usr/lib/crtn.o |
26 | _GCC_CRTDIR?= ${DESTDIR}/usr/lib | | 30 | _GCC_CRTDIR?= ${DESTDIR}/usr/lib |
27 | _GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib | | 31 | _GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib |
28 | .endif | | 32 | .endif |
29 | | | 33 | |