1
0
Fork 1
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:
Peter Simons 2009-06-29 11:01:10 +00:00
parent 8bd6a26806
commit 785e9630f0

View file

@ -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 = {