anchor.diff:  
         # Find the gcc libraries path (may work only without multilib).
         ${optionalString cc.langAda or false ''
  -        basePath=`echo $cc/lib/*/*/*`
  +        basePath=`echo ${cc_solib}/lib/*/*/*`
           ccCFlags+=" -B$basePath -I$basePath/adainclude"
           gnatCFlags="-aI$basePath/adainclude -aO$basePath/adalib"
           echo "$gnatCFlags" > $out/nix-support/gnat-cflags
  
positive.code:     '' else ''
        echo $cc > $out/nix-support/orig-cc
  
        # GCC shows $cc/lib in `gcc -print-search-dirs', but not
        # $cc/lib64 (even though it does actually search there...)..
        # This confuses libtool.  So add it to the compiler tool search
        # path explicitly.
        if [ -e "${cc.out}/lib64" -a ! -L "${cc.out}/lib64" ]; then
          ccLDFlags+=" -L${cc_solib}/lib64"
          ccCFlags+=" -B${cc.out}/lib64"
        fi
        ccLDFlags+=" -L${cc_solib}/lib"
  
  
negative.code:       # 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}/lib/ -idirafter ${libc_dev}/include -idirafter ${cc}/lib/gcc/*/*/include-fixed" > $out/nix-support/libc-cflags
  
        echo "-L${libc_lib}/lib" > $out/nix-support/libc-ldflags
  
  