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
16e2a9133f
commit
723d5a5581
@ -53,6 +53,10 @@ let
|
||||
for i in /usr /sw /opt /pkg; do
|
||||
substituteInPlace ./setup.py --replace $i /no-such-path
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user