Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/Makefile
Show All 25 Lines | |||||
# not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS | # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS | ||||
# below. Note: there are no IDs for syscall stubs whose sources are generated. | # below. Note: there are no IDs for syscall stubs whose sources are generated. | ||||
# To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS. | # To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS. | ||||
# To include RCS ID strings from other BSD projects, remove -DNO__RCSID from CFLAGS. | # To include RCS ID strings from other BSD projects, remove -DNO__RCSID from CFLAGS. | ||||
CFLAGS+=-DNO__SCCSID -DNO__RCSID | CFLAGS+=-DNO__SCCSID -DNO__RCSID | ||||
LIB=c | LIB=c | ||||
SHLIB_MAJOR= 7 | SHLIB_MAJOR= 7 | ||||
.if ${MK_SSP} != "no" | |||||
SHLIB_LDSCRIPT=libc.ldscript | SHLIB_LDSCRIPT=libc.ldscript | ||||
.else | |||||
SHLIB_LDSCRIPT=libc_nossp.ldscript | |||||
.endif | |||||
SHLIB_LDSCRIPT_LINKS=libxnet.so | SHLIB_LDSCRIPT_LINKS=libxnet.so | ||||
WARNS?= 2 | WARNS?= 2 | ||||
CFLAGS+=-I${LIBC_SRCTOP}/include -I${SRCTOP}/include | CFLAGS+=-I${LIBC_SRCTOP}/include -I${SRCTOP}/include | ||||
CFLAGS+=-I${LIBC_SRCTOP}/${LIBC_ARCH} | CFLAGS+=-I${LIBC_SRCTOP}/${LIBC_ARCH} | ||||
.if ${MK_NLS} != "no" | .if ${MK_NLS} != "no" | ||||
CFLAGS+=-DNLS | CFLAGS+=-DNLS | ||||
.endif | .endif | ||||
CLEANFILES+=tags | CLEANFILES+=tags | ||||
INSTALL_PIC_ARCHIVE= | INSTALL_PIC_ARCHIVE= | ||||
BUILD_NOSSP_PIC_ARCHIVE= | BUILD_NOSSP_PIC_ARCHIVE= | ||||
PRECIOUSLIB= | PRECIOUSLIB= | ||||
.ifndef NO_THREAD_STACK_UNWIND | .ifndef NO_THREAD_STACK_UNWIND | ||||
CANCELPOINTS_CFLAGS=-fexceptions | CANCELPOINTS_CFLAGS=-fexceptions | ||||
CFLAGS+=${CANCELPOINTS_CFLAGS} | CFLAGS+=${CANCELPOINTS_CFLAGS} | ||||
.endif | .endif | ||||
# | # | ||||
# Link with static libcompiler_rt.a. | # Link with static libcompiler_rt.a. | ||||
# | # | ||||
LDFLAGS+= -nodefaultlibs | LDFLAGS+= -nodefaultlibs | ||||
LIBADD+= compiler_rt | LIBADD+= compiler_rt | ||||
.if ${MK_SSP} != "no" | |||||
LIBADD+= ssp_nonshared | |||||
.endif | |||||
# Extras that live in either libc.a or libc_nonshared.a | # Extras that live in either libc.a or libc_nonshared.a | ||||
LIBC_NONSHARED_SRCS= | LIBC_NONSHARED_SRCS= | ||||
# Define (empty) variables so that make doesn't give substitution | # Define (empty) variables so that make doesn't give substitution | ||||
# errors if the included makefiles don't change these: | # errors if the included makefiles don't change these: | ||||
MDSRCS= | MDSRCS= | ||||
MISRCS= | MISRCS= | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |