@ -235,7 +235,7 @@ stdenv.mkDerivation {
fi
''
+ optionalString ( libc != null ) ''
+ optionalString ( libc != null ) ( ''
##
## General libc support
##
@ -251,11 +251,17 @@ stdenv.mkDerivation {
# compile, because it uses "#include_next <limits.h>" to find the
# limits.h file in ../includes-fixed. To remedy the problem,
# another -idirafter is necessary to add that directory again.
echo " - B ${ libc_lib } ${ libc . libdir or " / l i b / " } - i d i r a f t e r ${ libc_dev } ${ libc . incdir or " / i n c l u d e " } ${ optionalString isGNU " - i d i r a f t e r ${ cc } / l i b / g c c / * / * / i n c l u d e - f i x e d " } " > $ out/nix-support/libc-cflags
echo " - B ${ libc_lib } ${ libc . libdir or " / l i b / " } " > > $ out/nix-support/libc-cflags
echo " - i d i r a f t e r ${ libc_dev } ${ libc . incdir or " / i n c l u d e " } " > > $ out/nix-support/libc-cflags
'' + o p t i o n a l S t r i n g i s G N U ''
for dir in " ${ cc } " /lib/gcc /* / */ include-fixed ; do
echo ' - idirafter' '' ${ dir } > > $o u t / n i x - s u p p o r t / l i b c - c f l a g s
done
'' + ''
echo " ${ libc_lib } " > $ out/nix-support/orig-libc
echo " ${ libc_dev } " > $ out/nix-support/orig-libc-dev
''
'' )
+ optionalString ( ! nativeTools ) ''
##