remove -Wno-long-double flag for python on darwin

svn path=/nixpkgs/trunk/; revision=16456
This commit is contained in:
Rob Vermaas 2009-07-24 14:51:04 +00:00
parent 8393b93136
commit 685bb27c64
2 changed files with 21 additions and 1 deletions

View File

@ -76,4 +76,4 @@ stdenv.mkDerivation ( {
tkSupport = (tk != null) && (tcl != null);
libPrefix = "python2.5";
} ;
} // (if stdenv.system == "i686-darwin" then { NIX_CFLAGS_COMPILE = "-msse2" ; } else {} ) )
} // (if stdenv.system == "i686-darwin" then { NIX_CFLAGS_COMPILE = "-msse2" ; patches = [./search-path.patch ./nolongdouble.patch]; } else {} ) )

View File

@ -0,0 +1,20 @@
diff -rc Python-2.5.4/configure Python-2.5.4-new/configure
*** Python-2.5.4/configure Sat Dec 13 15:13:52 2008
--- Python-2.5.4-new/configure Fri Jul 24 16:38:05 2009
***************
*** 4534,4540 ****
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
! BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
if test "${enable_universalsdk}"; then
BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
fi
--- 4534,4540 ----
;;
# is there any other compiler on Darwin besides gcc?
Darwin*)
! BASECFLAGS="$BASECFLAGS -no-cpp-precomp -mno-fused-madd"
if test "${enable_universalsdk}"; then
BASECFLAGS="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
fi