···542 # outputs where we don't want them. Patch the generated config.h to remove all
543 # such references except for data.
544 postConfigure = let
545- toStrip = lib.remove "data" finalAttrs.outputs; # We want to keep references to the data dir.
0546 in
547- "remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${placeholder o}") toStrip)} config.h";
548549 nativeBuildInputs = [ removeReferencesTo addOpenGLRunpath perl pkg-config texinfo yasm ];
550
···542 # outputs where we don't want them. Patch the generated config.h to remove all
543 # such references except for data.
544 postConfigure = let
545+ toStrip = map placeholder (lib.remove "data" finalAttrs.outputs) # We want to keep references to the data dir.
546+ ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) buildPackages.stdenv.cc;
547 in
548+ "remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${o}") toStrip)} config.h";
549550 nativeBuildInputs = [ removeReferencesTo addOpenGLRunpath perl pkg-config texinfo yasm ];
551