File tree Expand file tree Collapse file tree
pkgs/development/libraries/gmp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
77 url = "mirror://gnu/gmp/${ name } .tar.bz2" ;
88 sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck" ;
99 } ;
10-
10+ patches = [ ./darwinPlatform432.patch ] ;
1111 nativeBuildInputs = [ m4 ] ;
1212
1313 # Prevent the build system from using sub-architecture-specific
@@ -16,10 +16,17 @@ stdenv.mkDerivation rec {
1616 # This is not a problem for Apple machines, which are all alike. In
1717 # addition, `configfsf.guess' would return `i386-apple-darwin10.2.0' on
1818 # `x86_64-darwin', leading to a 32-bit ABI build, which is undesirable.
19+ patchPlatformBuild = if ! stdenv . isDarwin then "$ac_cv_build" else ''"x86_64-apple-darwin13.0.0"'' ;
20+ patchPlatformHost = if ! stdenv . isDarwin then "$ac_cv_host" else ''"x86_64-apple-darwin13.0.0"'' ;
21+
1922 preConfigure =
2023 if ! stdenv . isDarwin
2124 then "ln -sf configfsf.guess config.guess"
22- else ''echo "Darwin host is `./config.guess`."'' ;
25+ else ''
26+ substituteInPlace configure --replace "/usr/bin/" ""
27+ substituteInPlace configure --subst-var patchPlatformBuild --subst-var patchPlatformHost
28+ echo "Darwin host is `./config.guess`."'' ;
29+
2330
2431 configureFlags = if cxx then "--enable-cxx" else "--disable-cxx" ;
2532
Original file line number Diff line number Diff line change 1+ diff -rupN a/configure b/configure
2+ --- a/configure 2010-01-07 21:09:40.000000000 +0100
3+ +++ b/configure 2014-01-09 22:19:37.000000000 +0100
4+ @@ -2140,6 +2140,7 @@ echo "$as_me: error: $SHELL $ac_aux_dir/
5+ fi
6+ { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7+ echo "${ECHO_T}$ac_cv_build" >&6; }
8+ + ac_cv_build = @patchPlatformBuild@
9+ case $ac_cv_build in
10+ *-*-*) ;;
11+ *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
12+ @@ -2177,6 +2178,7 @@ fi
13+ fi
14+ { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
15+ echo "${ECHO_T}$ac_cv_host" >&6; }
16+ + ac_cv_host=@patchPlatformHost@
17+ case $ac_cv_host in
18+ *-*-*) ;;
19+ *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
You can’t perform that action at this time.
0 commit comments