···542542 # outputs where we don't want them. Patch the generated config.h to remove all
543543 # such references except for data.
544544 postConfigure = let
545545- toStrip = lib.remove "data" finalAttrs.outputs; # We want to keep references to the data dir.
545545+ toStrip = map placeholder (lib.remove "data" finalAttrs.outputs) # We want to keep references to the data dir.
546546+ ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) buildPackages.stdenv.cc;
546547 in
547547- "remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${placeholder o}") toStrip)} config.h";
548548+ "remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${o}") toStrip)} config.h";
548549549550 nativeBuildInputs = [ removeReferencesTo addOpenGLRunpath perl pkg-config texinfo yasm ];
550551