forked from mirrors/nixpkgs
fix python-2.6 build: purity for systems with stdenv.gcc.libc
On other systems python26 will continue to look for /usr/include/netinet/in.h among others. I don't know whether/what to do about that.
This commit is contained in:
parent
56517508d8
commit
a37cabdbb7
|
@ -53,6 +53,10 @@ let
|
||||||
for i in /usr /sw /opt /pkg; do
|
for i in /usr /sw /opt /pkg; do
|
||||||
substituteInPlace ./setup.py --replace $i /no-such-path
|
substituteInPlace ./setup.py --replace $i /no-such-path
|
||||||
done
|
done
|
||||||
|
'' + optionalString (stdenv ? gcc && stdenv.gcc.libc != null) ''
|
||||||
|
for i in Lib/plat-*/regen; do
|
||||||
|
substituteInPlace $i --replace /usr/include/ ${stdenv.gcc.libc}/include/
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2";
|
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2";
|
||||||
|
|
Loading…
Reference in a new issue