Makefile (d60840138f6292c1ceeb177ebe797eca0b2749da) Makefile (23f6875a43f7ce365f2d52cf857da010c47fb03b)
1# $FreeBSD$
2
1# $FreeBSD$
2
3.PATH: ${.CURDIR}/../common
3.PATH: ${.CURDIR:H}/common
4
5SRCS= crt1.c crti.S crtn.S
6OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7OBJS+= Scrt1.o gcrt1.o
4
5SRCS= crt1.c crti.S crtn.S
6OBJS= ${SRCS:N*.h:R:S/$/.o/g}
7OBJS+= Scrt1.o gcrt1.o
8CFLAGS+= -I${.CURDIR}/../common \
9 -I${.CURDIR}/../../libc/include \
8CFLAGS+= -I${.CURDIR:H}/common \
9 -I${SRCTOP}/lib/libc/include \
10 -mlongcall
11
12# XXX: See the log for r232932 as to why the above -mlongcall is needed. Since
13# clang doesn't support -mlongcall, and testing shows a clang linked with a
14# clang-built csu segfaults, this must currently be compiled with gcc. Once
15# clang supports -mlongcall, or we get a fixed ld, this can be revisited.
16.include <bsd.compiler.mk>
17.if ${COMPILER_TYPE} != "gcc"

--- 40 unchanged lines hidden ---
10 -mlongcall
11
12# XXX: See the log for r232932 as to why the above -mlongcall is needed. Since
13# clang doesn't support -mlongcall, and testing shows a clang linked with a
14# clang-built csu segfaults, this must currently be compiled with gcc. Once
15# clang supports -mlongcall, or we get a fixed ld, this can be revisited.
16.include <bsd.compiler.mk>
17.if ${COMPILER_TYPE} != "gcc"

--- 40 unchanged lines hidden ---