mod_wsgi: fixed build on Darwin

The configure script had an hard-coded impure path to the lipo binary. If that
binary was found -- and it was --, then the script decided to pass an invalid
"-arch i386" flag to libtool, which subsequently failed. There is probably
another way to pass that -arch flag, but I didn't look hard because it's
redundant anyway.

svn path=/nixpkgs/trunk/; revision=24530
This commit is contained in:
Peter Simons 2010-10-29 14:46:40 +00:00
parent 15ef8b5721
commit 3f1392cb5a

View File

@ -11,7 +11,9 @@ stdenv.mkDerivation {
buildInputs = [ apacheHttpd python ];
patchPhase = ''
sed -r -i "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" configure
sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
${if stdenv.isDarwin then "-e 's|/usr/bin/lipo|lipo|'" else ""} \
configure
'';
meta = {