diff --git a/repos/ports/src/noux-pkg/make/target.mk b/repos/ports/src/noux-pkg/make/target.mk index a07febe1b..080df684f 100644 --- a/repos/ports/src/noux-pkg/make/target.mk +++ b/repos/ports/src/noux-pkg/make/target.mk @@ -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)