File tree 1 file changed +6
-2
lines changed
pkgs/build-support/cc-wrapper
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 130
130
# Work around "stdenv-darwin-boot-2 is not allowed to refer to path /nix/store/...-expand-response-params.c"
131
131
cp "$src" expand-response-params.c
132
132
"$CC" -std=c99 -O3 -o "$out" expand-response-params.c
133
+ strip -S $out
134
+ ${ optionalString hostPlatform . isLinux "patchelf --shrink-rpath $out" }
133
135
'' ;
134
136
} else "" ;
135
137
@@ -145,6 +147,7 @@ stdenv.mkDerivation {
145
147
inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin ;
146
148
gnugrep_bin = if nativeTools then "" else gnugrep ;
147
149
150
+ outputs = [ "out" "man" ] ;
148
151
149
152
passthru = {
150
153
inherit libc nativeTools nativeLibc nativePrefix isGNU isClang default_cxx_stdlib_compile
@@ -164,7 +167,7 @@ stdenv.mkDerivation {
164
167
165
168
buildCommand =
166
169
''
167
- mkdir -p $out/bin $out/nix-support
170
+ mkdir -p $out/bin $out/nix-support $man/nix-support
168
171
169
172
wrap() {
170
173
local dst="$1"
@@ -275,7 +278,8 @@ stdenv.mkDerivation {
275
278
# Propagate the wrapped cc so that if you install the wrapper,
276
279
# you get tools like gcov, the manpages, etc. as well (including
277
280
# for binutils and Glibc).
278
- echo ${ cc } ${ cc . man or "" } ${ binutils_bin } ${ if libc == null then "" else libc_bin } > $out/nix-support/propagated-user-env-packages
281
+ echo ${ cc } ${ binutils_bin } ${ if libc == null then "" else libc_bin } > $out/nix-support/propagated-user-env-packages
282
+ echo ${ cc . man or "" } > $man/nix-support/propagated-user-env-packages
279
283
280
284
echo ${ toString extraPackages } > $out/nix-support/propagated-native-build-inputs
281
285
''
You can’t perform that action at this time.
0 commit comments