mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
gmp: use standard GNU config.guess
libgmp comes with an extended config.guess script that features more accurate CPU detection. Unfortunately, use of that script causes the configure phase to choose fairly aggressive optimization flags and the resulting binaries might not work on architectures other than the machine those binaries were built on. The standard GNU config.guess script, however, recognizes a CPU type of 'x86' only. Thus, libgmp chooses the following settings: ABI="32" CC="gcc" CFLAGS="-m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro" CPPFLAGS="" MPN_PATH=" x86/p6 x86 generic" svn path=/nixpkgs/branches/stdenv-updates/; revision=16084
This commit is contained in:
parent
8bd6a26806
commit
785e9630f0
|
@ -9,9 +9,11 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs = [m4];
|
||||
|
||||
|
||||
preConfigure = "ln -sf configfsf.guess config.guess";
|
||||
|
||||
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
|
||||
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue