Makefile (281197) | Makefile (281714) |
---|---|
1# @(#)Makefile 8.2 (Berkeley) 2/3/94 | 1# @(#)Makefile 8.2 (Berkeley) 2/3/94 |
2# $FreeBSD: head/lib/libc/Makefile 281197 2015-04-07 09:52:14Z andrew $ | 2# $FreeBSD: head/lib/libc/Makefile 281714 2015-04-18 21:50:13Z kib $ |
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.if ${MK_SYSCALL_COMPAT} != "no" 161CFLAGS+=-DSYSCALL_COMPAT 162.endif 163 | |
164.include <bsd.arch.inc.mk> 165 166.include <bsd.lib.mk> 167 168# Disable warnings in contributed sources. 169CWARNFLAGS:= ${.IMPSRC:Ngdtoa_*.c:C/^.+$/${CWARNFLAGS}/:C/^$/-w/} 170# XXX For now, we don't allow libc to be compiled with 171# -fstack-protector-all because it breaks rtld. We may want to make a librtld 172# in the future to circumvent this. 173SSP_CFLAGS:= ${SSP_CFLAGS:S/^-fstack-protector-all$/-fstack-protector/} 174# Disable stack protection for SSP symbols. 175SSP_CFLAGS:= ${.IMPSRC:N*/stack_protector.c:C/^.+$/${SSP_CFLAGS}/} 176# Generate stack unwinding tables for cancellation points 177CANCELPOINTS_CFLAGS:= ${.IMPSRC:Mcancelpoints_*:C/^.+$/${CANCELPOINTS_CFLAGS}/:C/^$//} | 160.include <bsd.arch.inc.mk> 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/^$//} |