mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
misc hurd stuff: Get rid of crossConfig
This stuff is horribly bit-rotted anyways, but I'm getting rid of crossConfig so it must be changed.
This commit is contained in:
parent
9be118223b
commit
84868b8b06
@ -75,25 +75,16 @@ stdenv.mkDerivation ({
|
||||
|
||||
//
|
||||
|
||||
(if !headersOnly && buildTarget != null
|
||||
then assert installTarget != null; {
|
||||
# Use the default `buildPhase' and `installPhase' so that the usual hooks
|
||||
# can still be used.
|
||||
buildFlags = buildTarget;
|
||||
installTargets = installTarget;
|
||||
}
|
||||
else {})
|
||||
stdenv.lib.optionalAttrs (!headersOnly && buildTarget != null) {
|
||||
# Use the default `buildPhase' and `installPhase' so that the usual hooks
|
||||
# can still be used.
|
||||
buildFlags = buildTarget;
|
||||
installTargets = assert installTarget != null; installTarget;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
(if headersOnly
|
||||
then { dontBuild = true; installPhase = "make install-headers"; }
|
||||
else (if (cross != null)
|
||||
then {
|
||||
crossConfig = cross.config;
|
||||
|
||||
# The `configure' script wants to build executables so tell it where
|
||||
# to find `crt1.o' et al.
|
||||
LDFLAGS = "-B${glibcCross}/lib";
|
||||
}
|
||||
else { })))
|
||||
stdenv.lib.optionalAttrs headersOnly {
|
||||
dontBuild = true;
|
||||
installPhase = "make install-headers";
|
||||
})
|
||||
|
@ -55,8 +55,6 @@ stdenv.mkDerivation ({
|
||||
|
||||
(if cross != null
|
||||
then {
|
||||
crossConfig = cross.config;
|
||||
|
||||
# Tell gcc where to find `crt1.o' et al. This is specified in two
|
||||
# different ways: one for gcc as run from `configure', and one for linking
|
||||
# libpthread.so (by default `libtool --mode=link' swallows `-B', hence
|
||||
|
Loading…
Reference in New Issue
Block a user