mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
ports/make: avoid aliasing with libc symbols
This patch prefixes a few symbols in the make binary that are offered by both the libc and the make binary. The clash of symbol names produces confusing runtime linkage otherwise. This becomes a problem during fork/evecve.
This commit is contained in:
parent
3a1f5bc13a
commit
3b427824a7
@ -3,4 +3,11 @@
|
||||
#
|
||||
CPPFLAGS += -D__FreeBSD__
|
||||
|
||||
#
|
||||
# Avoid aliasing with libc symbols to prevent the dynamic linker from
|
||||
# resolving libc-internal references to the make binary, which causes
|
||||
# trouble for fork/execve.
|
||||
#
|
||||
CPPFLAGS += $(foreach S, optarg optind opterr optopt, -D$S=mk_$S)
|
||||
|
||||
include $(call select_from_repositories,mk/noux.mk)
|
||||
|
Loading…
x
Reference in New Issue
Block a user