Deleted Added
full compact
Makefile (281714) Makefile (282057)
1# @(#)Makefile 8.2 (Berkeley) 2/3/94
1# @(#)Makefile 8.2 (Berkeley) 2/3/94
2# $FreeBSD: head/lib/libc/Makefile 281714 2015-04-18 21:50:13Z kib $
2# $FreeBSD: head/lib/libc/Makefile 282057 2015-04-27 06:49:27Z ngie $
3
4SHLIBDIR?= /lib
5
6.include <src.opts.mk>
7
8LIBC_SRCTOP?= ${.CURDIR}
9
10# Pick the current architecture directory for libc. In general, this is

--- 141 unchanged lines hidden (view full) ---

152libkern.gen: ${KQSRCS} ${KSRCS}
153 ${CP} ${LIBC_SRCTOP}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern
154
155libkern.${LIBC_ARCH}:: ${KMSRCS}
156.if defined(KMSRCS) && !empty(KMSRCS)
157 ${CP} ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH}
158.endif
159
3
4SHLIBDIR?= /lib
5
6.include <src.opts.mk>
7
8LIBC_SRCTOP?= ${.CURDIR}
9
10# Pick the current architecture directory for libc. In general, this is

--- 141 unchanged lines hidden (view full) ---

152libkern.gen: ${KQSRCS} ${KSRCS}
153 ${CP} ${LIBC_SRCTOP}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern
154
155libkern.${LIBC_ARCH}:: ${KMSRCS}
156.if defined(KMSRCS) && !empty(KMSRCS)
157 ${CP} ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH}
158.endif
159
160.include <bsd.arch.inc.mk>
160.if ${MK_TESTS} != "no"
161SUBDIR+= tests
162.endif
161
162.include <bsd.lib.mk>
163
164# Disable warnings in contributed sources.
165CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
166# XXX For now, we don't allow libc to be compiled with
167# -fstack-protector-all because it breaks rtld. We may want to make a librtld
168# in the future to circumvent this.
169SSP_CFLAGS:= ${SSP_CFLAGS:S/^-fstack-protector-all$/-fstack-protector/}
170# Disable stack protection for SSP symbols.
171SSP_CFLAGS:= ${.IMPSRC:N*/stack_protector.c:C/^.+$/${SSP_CFLAGS}/}
172# Generate stack unwinding tables for cancellation points
173CANCELPOINTS_CFLAGS:= ${.IMPSRC:Mcancelpoints_*:C/^.+$/${CANCELPOINTS_CFLAGS}/:C/^$//}
163
164.include <bsd.lib.mk>
165
166# Disable warnings in contributed sources.
167CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
168# XXX For now, we don't allow libc to be compiled with
169# -fstack-protector-all because it breaks rtld. We may want to make a librtld
170# in the future to circumvent this.
171SSP_CFLAGS:= ${SSP_CFLAGS:S/^-fstack-protector-all$/-fstack-protector/}
172# Disable stack protection for SSP symbols.
173SSP_CFLAGS:= ${.IMPSRC:N*/stack_protector.c:C/^.+$/${SSP_CFLAGS}/}
174# Generate stack unwinding tables for cancellation points
175CANCELPOINTS_CFLAGS:= ${.IMPSRC:Mcancelpoints_*:C/^.+$/${CANCELPOINTS_CFLAGS}/:C/^$//}