Unverified Commit f5194c35 authored by Artemis Tosini's avatar Artemis Tosini
Browse files

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
parent ece68644
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
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() {