1 # $NetBSD: bsd.gcc.mk,v 1.4 2012/07/19 19:42:45 christos Exp $
3 .if
!defined
(_BSD_GCC_MK_
)
6 .if defined
(EXTERNAL_TOOLCHAIN
) && !defined
(__MINIX
)
7 _GCC_CRTBEGIN
!= ${CC} --print-file-name
=crtbegin.o
8 _GCC_CRTBEGINS
!= ${CC} --print-file-name
=crtbeginS.o
9 _GCC_CRTEND
!= ${CC} --print-file-name
=crtend.o
10 _GCC_CRTENDS
!= ${CC} --print-file-name
=crtendS.o
11 _GCC_CRTI
!= ${CC} --print-file-name
=crti.o
12 _GCC_CRTN
!= ${CC} --print-file-name
=crtn.o
13 _GCC_CRTDIR
!= dirname
${_GCC_CRTBEGIN}
14 _GCC_LIBGCCDIR
!= dirname
`${CC} --print-libgcc-file-name`
16 _GCC_CRTBEGIN?
= ${DESTDIR}/usr
/lib
/crtbegin.o
17 _GCC_CRTBEGINS?
= ${DESTDIR}/usr
/lib
/crtbeginS.o
18 _GCC_CRTEND?
= ${DESTDIR}/usr
/lib
/crtend.o
19 _GCC_CRTENDS?
= ${DESTDIR}/usr
/lib
/crtendS.o
20 _GCC_CRTI?
= ${DESTDIR}/usr
/lib
/crti.o
21 _GCC_CRTN?
= ${DESTDIR}/usr
/lib
/crtn.o
22 _GCC_CRTDIR?
= ${DESTDIR}/usr
/lib
23 _GCC_LIBGCCDIR?
= ${DESTDIR}/usr
/lib
27 AFLAGS
+=-D__ASSEMBLY__
28 CPPFLAGS
+= -fno-builtin
-Wall
-Wno-sign-compare
30 .if
${MACHINE_ARCH} == "i386"
31 CPPFLAGS
+= -march
=i586
32 .elif
${MACHINE_ARCH} == "arm"
33 CPPFLAGS
+= -march
=armv7-a
37 # LSC In the current state there is too much to be done
38 # Some package have been identified by directly adding NOGCCERROR
42 .
endif # defined(__MINIX)
44 .
endif # ! defined(_BSD_GCC_MK_)