openbsd.openbsdSetupHook: Fix bsd.prog.mk

bsd.prog.mk makes sure libc is built before programs that use it by
making all programs depend on core files.

We handle this dependency by referencing libc in cc-wrapper,
but that isn't sufficient to tell bsd.prog.mk that e.g. crtbegin.o
exists.

Clear libc-related variables to fix OpenBSD program build
This commit is contained in:
Artemis Tosini 2024-10-23 23:00:13 +00:00
parent ece68644a3
commit f5194c3579
No known key found for this signature in database
GPG Key ID: EE5227935FE3FF18

View File

@ -1,6 +1,11 @@
addOpenBSDMakeFlags() {
prependToVar makeFlags "INCSDIR=${!outputDev}/include"
prependToVar makeFlags "MANDIR=${!outputMan}/share/man"
# Variables are used to declare dependencies, but we handle them with cc-wrapper
prependToVar makeFlags "CRTBEGIN="
prependToVar makeFlags "CRTEND="
prependToVar makeFlags "LIBCRT0="
prependToVar makeFlags "LIBC="
}
fixOpenBSDInstallDirs() {