cctools: Don't always bring in headers
- Give cctools a dev output for the headers - Update Libsystem to grab the headers from that dev output - Don't include the headers in Darwin binutils, just as GNU Binutils no longer does.
This commit is contained in:
@@ -23,7 +23,7 @@ appleDerivation rec {
|
|||||||
(cd $dep/include && find . -name '*.h' | cpio -pdm $out/include)
|
(cd $dep/include && find . -name '*.h' | cpio -pdm $out/include)
|
||||||
done
|
done
|
||||||
|
|
||||||
(cd ${cctools}/include/mach-o && find . -name '*.h' | cpio -pdm $out/include/mach-o)
|
(cd ${cctools.dev}/include/mach-o && find . -name '*.h' | cpio -pdm $out/include/mach-o)
|
||||||
|
|
||||||
cat <<EOF > $out/include/TargetConditionals.h
|
cat <<EOF > $out/include/TargetConditionals.h
|
||||||
#ifndef __TARGETCONDITIONALS__
|
#ifndef __TARGETCONDITIONALS__
|
||||||
|
|||||||
@@ -37,10 +37,6 @@ stdenv.mkDerivation {
|
|||||||
ln -sf "${cctools}/bin/$i" "$out/bin/$i"
|
ln -sf "${cctools}/bin/$i" "$out/bin/$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in ${cctools}/include/*; do
|
|
||||||
ln -s "$i" "$out/include/$(basename $i)"
|
|
||||||
done
|
|
||||||
|
|
||||||
# FIXME: this will give us incorrect man pages for bits of cctools
|
# FIXME: this will give us incorrect man pages for bits of cctools
|
||||||
ln -s ${binutils-raw.out}/share $out/share
|
ln -s ${binutils-raw.out}/share $out/share
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ let
|
|||||||
sha256 = "0l45mvyags56jfi24rawms8j2ihbc45mq7v13pkrrwppghqrdn52";
|
sha256 = "0l45mvyags56jfi24rawms8j2ihbc45mq7v13pkrrwppghqrdn52";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake libtool_2 ];
|
nativeBuildInputs = [ autoconf automake libtool_2 ];
|
||||||
buildInputs = [ libuuid ] ++
|
buildInputs = [ libuuid ] ++
|
||||||
# Only need llvm and clang if the stdenv isn't already clang-based (TODO: just make a stdenv.cc.isClang)
|
# Only need llvm and clang if the stdenv isn't already clang-based (TODO: just make a stdenv.cc.isClang)
|
||||||
|
|||||||
Reference in New Issue
Block a user