treewide: fixup breakage due to absolute compiler path
Some packages just can't handle them #44767. It was tempting to try to abstract this in some way, but I didn't do that ATM.
This commit is contained in:
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
|
||||
# TODO(@Dridus) remove the ++ libc at next hash break
|
||||
buildInputs = [ lua5 ] ++ stdenv.lib.optional stdenv.isLinux stdenv.cc.libc;
|
||||
|
||||
preConfigure = ''
|
||||
CC=${stdenv.cc.targetPrefix}cc
|
||||
CXX=${stdenv.cc.targetPrefix}c++
|
||||
'';
|
||||
|
||||
cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
|
||||
--replace xcrun ""
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
CC=${stdenv.cc.targetPrefix}cc
|
||||
CXX=${stdenv.cc.targetPrefix}c++
|
||||
'';
|
||||
|
||||
makeFlags = [ "prefix=$(out)" "OPTIMIZE=yes" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@@ -28,7 +28,10 @@ stdenv.mkDerivation rec {
|
||||
propagatedBuildInputs = [ gmp ];
|
||||
|
||||
patchPhase = "patchShebangs ./z_pp.pl";
|
||||
|
||||
configurePhase = ''
|
||||
CC=${stdenv.cc.targetPrefix}cc
|
||||
CXX=${stdenv.cc.targetPrefix}c++
|
||||
./configure -installdir $out/lib/ocaml/${ocaml.version}/site-lib
|
||||
'';
|
||||
preInstall = "mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib";
|
||||
|
||||
Reference in New Issue
Block a user