Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/Makefile
# @(#)Makefile 8.2 (Berkeley) 2/3/94 | # @(#)Makefile 8.2 (Berkeley) 2/3/94 | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PACKAGE= clibs | PACKAGE= clibs | ||||
SHLIBDIR?= /lib | SHLIBDIR?= /lib | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
# Force building of libc_pic.a | # Force building of libc_pic.a | ||||
MK_TOOLCHAIN= yes | MK_TOOLCHAIN= yes | ||||
LIBC_SRCTOP?= ${.CURDIR} | LIBC_SRCTOP?= ${.CURDIR} | ||||
LIBSYS_SRCTOP?= ${.CURDIR}/../libsys/ | |||||
# Pick the current architecture directory for libc. In general, this is | # Pick the current architecture directory for libc. In general, this is | ||||
# named MACHINE_CPUARCH, but some ABIs are different enough to require | # named MACHINE_CPUARCH, but some ABIs are different enough to require | ||||
# their own libc, so allow a directory named MACHINE_ARCH to override this. | # their own libc, so allow a directory named MACHINE_ARCH to override this. | ||||
.if exists(${LIBC_SRCTOP}/${MACHINE_ARCH}) | .if exists(${LIBC_SRCTOP}/${MACHINE_ARCH}) | ||||
LIBC_ARCH=${MACHINE_ARCH} | LIBC_ARCH=${MACHINE_ARCH} | ||||
.else | .else | ||||
Show All 32 Lines | |||||
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 | ||||
LIBADD+= sys | |||||
LDFLAGS+=-Wl,-f,libsys.so | |||||
.if ${MK_SSP} != "no" | .if ${MK_SSP} != "no" | ||||
LIBADD+= ssp_nonshared | LIBADD+= ssp_nonshared | ||||
.endif | .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= | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |