mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 01:58:55 +00:00
0a85964f91
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
16 lines
274 B
Makefile
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 :
|