2014-05-07 21:52:52 +00:00
|
|
|
LIBC_GEN_DIR = $(LIBC_DIR)/lib/libc/gen
|
2011-12-22 15:19:25 +00:00
|
|
|
|
|
|
|
# this file produces a warning about a missing header file, lets drop it
|
2012-07-19 08:56:49 +00:00
|
|
|
FILTER_OUT_C += getosreldate.c sem.c valloc.c getpwent.c
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2016-04-15 12:19:51 +00:00
|
|
|
# the following are superceded by our minimalist sysctl and sysconf
|
|
|
|
FILTER_OUT_C += \
|
|
|
|
devname.c feature_present.c getpagesizes.c getvfsbyname.c \
|
2019-04-26 10:47:33 +00:00
|
|
|
setproctitle.c sysconf.c
|
2016-04-15 12:19:51 +00:00
|
|
|
|
2018-11-24 13:53:52 +00:00
|
|
|
# the following is a wrapper over rusage, which we cannot provide
|
|
|
|
FILTER_OUT_C += clock.c
|
|
|
|
|
2019-04-26 10:47:33 +00:00
|
|
|
# we implement this ourselves
|
|
|
|
FILTER_OUT_C += isatty.c
|
|
|
|
|
|
|
|
# compatibility with older FreeBSD is not a concern
|
|
|
|
FILTER_OUT_C += $(notdir $(wildcard $(LIBC_GEN_DIR)/*-compat11.c))
|
|
|
|
|
|
|
|
# file-locking not supported
|
|
|
|
FILTER_OUT_C += lockf.c
|
|
|
|
|
|
|
|
# interposing stubs
|
|
|
|
FILTER_OUT_C += \
|
|
|
|
elf_utils.c \
|
|
|
|
sleep.c \
|
|
|
|
_spinlock_stub.c \
|
|
|
|
usleep.c \
|
|
|
|
wait3.c \
|
|
|
|
wait.c \
|
|
|
|
waitid.c \
|
|
|
|
waitpid.c \
|
|
|
|
|
|
|
|
# not appropriate in this context
|
|
|
|
FILTER_OUT_C += \
|
|
|
|
cap_sandboxed.c \
|
|
|
|
daemon.c \
|
|
|
|
disklabel.c \
|
|
|
|
exect.c \
|
|
|
|
getentropy.c \
|
|
|
|
getutxent.c \
|
|
|
|
pututxline.c \
|
|
|
|
readpassphrase.c \
|
|
|
|
scandir_b.c \
|
|
|
|
sem_new.c \
|
|
|
|
signal.c \
|
|
|
|
siginterrupt.c \
|
|
|
|
trivial-getcontextx.c \
|
|
|
|
utxdb.c \
|
|
|
|
|
|
|
|
# Uses non-standard "thr_kill"
|
|
|
|
FILTER_OUT_C += raise.c
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
SRC_C = $(filter-out $(FILTER_OUT_C),$(notdir $(wildcard $(LIBC_GEN_DIR)/*.c)))
|
|
|
|
|
2019-04-26 10:47:33 +00:00
|
|
|
SRC_C += interposing_table.c
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
# 'sysconf.c' includes the local 'stdtime/tzfile.h'
|
|
|
|
INC_DIR += $(REP_DIR)/src/lib/libc/stdtime
|
|
|
|
|
2013-07-29 14:56:08 +00:00
|
|
|
# '_pthread_stubs.c' includes the local 'libc_pdbg.h'
|
|
|
|
INC_DIR += $(REP_DIR)/src/lib/libc
|
|
|
|
|
2019-04-26 10:47:33 +00:00
|
|
|
INC_DIR += $(LIBC_DIR)/sys/crypto/chacha20
|
|
|
|
INC_DIR += $(LIBC_DIR)/sys
|
|
|
|
|
2011-12-22 15:19:25 +00:00
|
|
|
include $(REP_DIR)/lib/mk/libc-common.inc
|
|
|
|
|
|
|
|
vpath %.c $(LIBC_GEN_DIR)
|
2019-04-26 10:47:33 +00:00
|
|
|
vpath interposing_table.c $(LIBC_DIR)/lib/libc/sys
|