mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-01 00:12:39 +03:00
Tweak cross-compilation of some netbsd stuff
This makes, at least, the following packages compile with musl: * netbsd.compat * netbsd.getent * netbsd.fts
This commit is contained in:
parent
1d7166766d
commit
60944c7efd
@ -127,6 +127,10 @@ let
|
|||||||
nativeBuildInputs = [ makeMinimal ];
|
nativeBuildInputs = [ makeMinimal ];
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
|
# for some reason the build system re-runs configure with HOST_CC
|
||||||
|
depsBuildBuild = [ buildPackages.stdenv.cc ] ++ buildInputs;
|
||||||
|
HOST_CC = "${buildPackages.stdenv.cc}/bin/cc";
|
||||||
|
|
||||||
# temporarily use gnuinstall for bootstrapping
|
# temporarily use gnuinstall for bootstrapping
|
||||||
# bsdinstall will be built later
|
# bsdinstall will be built later
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
@ -211,6 +215,7 @@ let
|
|||||||
version = "8.0";
|
version = "8.0";
|
||||||
nativeBuildInputs = [ ];
|
nativeBuildInputs = [ ];
|
||||||
propagatedBuildInputs = [ compat ];
|
propagatedBuildInputs = [ compat ];
|
||||||
|
buildInputs = [ stdenv.cc ];
|
||||||
extraPaths = [
|
extraPaths = [
|
||||||
(fetchNetBSD "lib/libc/gen/fts.c" "8.0" "1a8hmf26242nmv05ipn3ircxb0jqmmi66rh78kkyi9vjwkfl3qn7")
|
(fetchNetBSD "lib/libc/gen/fts.c" "8.0" "1a8hmf26242nmv05ipn3ircxb0jqmmi66rh78kkyi9vjwkfl3qn7")
|
||||||
(fetchNetBSD "lib/libc/include/namespace.h" "8.0" "1sjvh9nw3prnk4rmdwrfsxh6gdb9lmilkn46jcfh3q5c8glqzrd7")
|
(fetchNetBSD "lib/libc/include/namespace.h" "8.0" "1sjvh9nw3prnk4rmdwrfsxh6gdb9lmilkn46jcfh3q5c8glqzrd7")
|
||||||
@ -218,9 +223,9 @@ let
|
|||||||
];
|
];
|
||||||
skipIncludesPhase = true;
|
skipIncludesPhase = true;
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cc -c -Iinclude -Ilib/libc/include lib/libc/gen/fts.c \
|
"$CC" -c -Iinclude -Ilib/libc/include lib/libc/gen/fts.c \
|
||||||
-o lib/libc/gen/fts.o
|
-o lib/libc/gen/fts.o
|
||||||
ar -rsc libfts.a lib/libc/gen/fts.o
|
"$AR" -rsc libfts.a lib/libc/gen/fts.o
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
Loading…
Reference in New Issue
Block a user