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
|
stdenv.lib.optionalAttrs (!headersOnly && buildTarget != null) {
|
||||||
then assert installTarget != null; {
|
# Use the default `buildPhase' and `installPhase' so that the usual hooks
|
||||||
# Use the default `buildPhase' and `installPhase' so that the usual hooks
|
# can still be used.
|
||||||
# can still be used.
|
buildFlags = buildTarget;
|
||||||
buildFlags = buildTarget;
|
installTargets = assert installTarget != null; installTarget;
|
||||||
installTargets = installTarget;
|
}
|
||||||
}
|
|
||||||
else {})
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
(if headersOnly
|
stdenv.lib.optionalAttrs headersOnly {
|
||||||
then { dontBuild = true; installPhase = "make install-headers"; }
|
dontBuild = true;
|
||||||
else (if (cross != null)
|
installPhase = "make install-headers";
|
||||||
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 { })))
|
|
||||||
|
@ -55,8 +55,6 @@ stdenv.mkDerivation ({
|
|||||||
|
|
||||||
(if cross != null
|
(if cross != null
|
||||||
then {
|
then {
|
||||||
crossConfig = cross.config;
|
|
||||||
|
|
||||||
# Tell gcc where to find `crt1.o' et al. This is specified in two
|
# 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
|
# different ways: one for gcc as run from `configure', and one for linking
|
||||||
# libpthread.so (by default `libtool --mode=link' swallows `-B', hence
|
# libpthread.so (by default `libtool --mode=link' swallows `-B', hence
|
||||||
|
Loading…
x
Reference in New Issue
Block a user