Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
This commit is contained in:
@@ -14,10 +14,12 @@ stdenv.mkDerivation rec {
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile \
|
||||
--replace /usr/local $out
|
||||
'' + stdenv.lib.optionalString (stdenv.gcc.libc != null)
|
||||
|
||||
substituteInPlace src/Makefile --replace gcc cc
|
||||
'' + stdenv.lib.optionalString (stdenv.cc.libc != null)
|
||||
''
|
||||
substituteInPlace Makefile \
|
||||
--replace ldconfig ${stdenv.gcc.libc}/sbin/ldconfig
|
||||
--replace ldconfig ${stdenv.cc.libc}/sbin/ldconfig
|
||||
'';
|
||||
|
||||
configurePhase = false;
|
||||
|
||||
Reference in New Issue
Block a user