perl: add cc in addition to makeBinaryWrapper. see NixOS#311794
The "correct" solution to this problem (makeBinaryWrapper fails to be able to compile the binary wrapper when building a freebsd cross env) is that makeBinaryWrapper should propagate or embed a reference to the compiler. However, this causes build failures on musl, so this will have to do for now.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ lib, perl, buildEnv, makeBinaryWrapper
|
||||
{ lib, perl, buildEnv, makeBinaryWrapper, stdenv
|
||||
, extraLibs ? []
|
||||
, extraOutputsToInstall ? []
|
||||
, postBuild ? ""
|
||||
@@ -17,7 +17,8 @@ let
|
||||
inherit ignoreCollisions;
|
||||
extraOutputsToInstall = [ "out" ] ++ extraOutputsToInstall;
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
# TODO: remove stdenv.cc as soon as it is added to propagatedNativeBuildInputs of makeBinaryWrapper
|
||||
nativeBuildInputs = [ makeBinaryWrapper stdenv.cc ];
|
||||
|
||||
# we create wrapper for the binaries in the different packages
|
||||
postBuild = ''
|
||||
|
||||
Reference in New Issue
Block a user