genode/repos/libports/lib/mk/compat-libc.mk
Sebastian Sumpf 0a85964f91 libports: add 'compat-libc'
Implement FBSD_1.0 versions of libc functions ('stat', 'fstat'). The
functions are versioned with @FBSD_1.0, and therefore, will not clash
with libc during linking. However, to be called by our dynamic linker,
the library must be before libc in the NEEDED section of the binary
using it. This requires the lib to be in front of libc in the LIBS
variable. The library currently will call libc 'stat' and 'fstat' by
looking up the symbols via 'dlsym'.

Ref genodelabs/goa#61
2023-08-23 13:46:37 +02:00

16 lines
274 B
Makefile

SHARED_LIB = yes
LIBS += libc
COMPAT_DIR = $(REP_DIR)/src/lib/compat-libc
SRC_CC = compat.cc
SRC_C = libc.c
vpath %.cc $(COMPAT_DIR)
vpath %.c $(COMPAT_DIR)
LD_OPT += --version-script=$(COMPAT_DIR)/symbol.map
CC_CXX_WARN_STRICT_CONVERSION =
# vi: set ft=make :