mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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:
parent
ece68644a3
commit
f5194c3579
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user