Merge pull request #217087 from lopsided98/ffmpeg-cross-refs

This commit is contained in:
Janik 2023-06-26 18:19:27 +02:00 committed by GitHub
commit 8d716b0c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -542,9 +542,10 @@ stdenv.mkDerivation (finalAttrs: {
# outputs where we don't want them. Patch the generated config.h to remove all
# such references except for data.
postConfigure = let
toStrip = lib.remove "data" finalAttrs.outputs; # We want to keep references to the data dir.
toStrip = map placeholder (lib.remove "data" finalAttrs.outputs) # We want to keep references to the data dir.
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) buildPackages.stdenv.cc;
in
"remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${placeholder o}") toStrip)} config.h";
"remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${o}") toStrip)} config.h";
nativeBuildInputs = [ removeReferencesTo addOpenGLRunpath perl pkg-config texinfo yasm ];