Deleted Added
full compact
Makefile (270519) Makefile (271771)
1# @(#)Makefile 8.2 (Berkeley) 2/3/94
1# @(#)Makefile 8.2 (Berkeley) 2/3/94
2# $FreeBSD: head/lib/libc/Makefile 270519 2014-08-25 06:10:03Z ngie $
2# $FreeBSD: head/lib/libc/Makefile 271771 2014-09-18 14:41:57Z will $
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

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

146 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
147 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
148KSRCS= bcmp.c ffs.c ffsl.c fls.c flsl.c mcount.c strcat.c strchr.c \
149 strcmp.c strcpy.c strlen.c strncpy.c strrchr.c
150
151libkern: libkern.gen libkern.${LIBC_ARCH}
152
153libkern.gen: ${KQSRCS} ${KSRCS}
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

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

146 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
147 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
148KSRCS= bcmp.c ffs.c ffsl.c fls.c flsl.c mcount.c strcat.c strchr.c \
149 strcmp.c strcpy.c strlen.c strncpy.c strrchr.c
150
151libkern: libkern.gen libkern.${LIBC_ARCH}
152
153libkern.gen: ${KQSRCS} ${KSRCS}
154 cp -p ${LIBC_SRCTOP}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern
154 cp -fp ${LIBC_SRCTOP}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern
155
156libkern.${LIBC_ARCH}:: ${KMSRCS}
157.if defined(KMSRCS) && !empty(KMSRCS)
155
156libkern.${LIBC_ARCH}:: ${KMSRCS}
157.if defined(KMSRCS) && !empty(KMSRCS)
158 cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH}
158 cp -fp ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH}
159.endif
160
161.include <bsd.lib.mk>
162
163# Disable warnings in contributed sources.
164CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
165# XXX For now, we don't allow libc to be compiled with
166# -fstack-protector-all because it breaks rtld. We may want to make a librtld
167# in the future to circumvent this.
168SSP_CFLAGS:= ${SSP_CFLAGS:S/^-fstack-protector-all$/-fstack-protector/}
169# Disable stack protection for SSP symbols.
170SSP_CFLAGS:= ${.IMPSRC:N*/stack_protector.c:C/^.+$/${SSP_CFLAGS}/}
171# Generate stack unwinding tables for cancellation points
172CANCELPOINTS_CFLAGS:= ${.IMPSRC:Mcancelpoints_*:C/^.+$/${CANCELPOINTS_CFLAGS}/:C/^$//}
159.endif
160
161.include <bsd.lib.mk>
162
163# Disable warnings in contributed sources.
164CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/}
165# XXX For now, we don't allow libc to be compiled with
166# -fstack-protector-all because it breaks rtld. We may want to make a librtld
167# in the future to circumvent this.
168SSP_CFLAGS:= ${SSP_CFLAGS:S/^-fstack-protector-all$/-fstack-protector/}
169# Disable stack protection for SSP symbols.
170SSP_CFLAGS:= ${.IMPSRC:N*/stack_protector.c:C/^.+$/${SSP_CFLAGS}/}
171# Generate stack unwinding tables for cancellation points
172CANCELPOINTS_CFLAGS:= ${.IMPSRC:Mcancelpoints_*:C/^.+$/${CANCELPOINTS_CFLAGS}/:C/^$//}