mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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
|
||||
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