genode/repos/libports/lib/mk/compat-libc.mk
Benjamin Lamowski 9f7e47368f libports: transform compat-libc into a static library
Dynamically loading the `compat-libc` breaks `fork(2)` on Genode.

Switch `compat-libc` to a special api package that provides a source
file for statically linking the library, analogous to the `blit`
package. This also requires a quirk in Goa but should prevent breaking
`fork()` and removes the runtime and archive dependencies for Rust
packages using `compat-libc`.

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

11 lines
162 B
Makefile

LIBS += libc
COMPAT_DIR = $(REP_DIR)/src/lib/compat-libc
SRC_CC = compat.cc
vpath %.cc $(COMPAT_DIR)
CC_CXX_WARN_STRICT_CONVERSION =
# vi: set ft=make :