bsd.gcc.mk revision 1.8
11.8Spooka# $NetBSD: bsd.gcc.mk,v 1.8 2012/12/10 20:58:55 pooka Exp $ 21.1Sthorpej 31.1Sthorpej.if !defined(_BSD_GCC_MK_) 41.1Sthorpej_BSD_GCC_MK_=1 51.1Sthorpej 61.1Sthorpej.if defined(EXTERNAL_TOOLCHAIN) 71.1Sthorpej_GCC_CRTBEGIN!= ${CC} --print-file-name=crtbegin.o 81.1Sthorpej_GCC_CRTEND!= ${CC} --print-file-name=crtend.o 91.8Spooka 101.8Spooka# If the toolchain does not know about a file, --print-file-name echoes 111.8Spooka# the input file name (why??). In that case we want an empty string for 121.8Spooka# dependencies to work correctly. Note: do _not_ use TOOL_SED here because 131.8Spooka# this file is used before TOOL_SED is built. 141.8Spooka_GCC_CRTBEGINS!= ${CC} --print-file-name=crtbeginS.o \ 151.8Spooka | sed 's|^crtbeginS.o$$||' 161.8Spooka_GCC_CRTENDS!= ${CC} --print-file-name=crtendS.o \ 171.8Spooka | sed 's|^crtendS.o$$||' 181.8Spooka_GCC_CRTI!= ${CC} --print-file-name=crti.o \ 191.8Spooka | sed 's|^crti.o$$||' 201.8Spooka_GCC_CRTN!= ${CC} --print-file-name=crtn.o \ 211.8Spooka | sed 's|^crtn.o$$||' 221.8Spooka 231.8Spooka_GCC_CRTDIR!= dirname ${_GCC_CRTBEGIN} 241.8Spooka_GCC_LIBGCCDIR!= dirname `${CC} --print-libgcc-file-name` 251.8Spooka 261.1Sthorpej.else 271.8Spooka 281.3Smrg_GCC_CRTBEGIN?= ${DESTDIR}/usr/lib/crtbegin.o 291.3Smrg_GCC_CRTBEGINS?= ${DESTDIR}/usr/lib/crtbeginS.o 301.3Smrg_GCC_CRTEND?= ${DESTDIR}/usr/lib/crtend.o 311.3Smrg_GCC_CRTENDS?= ${DESTDIR}/usr/lib/crtendS.o 321.4Schristos_GCC_CRTI?= ${DESTDIR}/usr/lib/crti.o 331.4Schristos_GCC_CRTN?= ${DESTDIR}/usr/lib/crtn.o 341.3Smrg_GCC_CRTDIR?= ${DESTDIR}/usr/lib 351.3Smrg_GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib 361.1Sthorpej.endif 371.1Sthorpej 381.1Sthorpej.endif # ! defined(_BSD_GCC_MK_) 39