anchor.diff:        --with-libtiff
         --with-ICU
         ${stdenv.lib.optionalString enableStrictBarrier "--enable-strict-barrier"}
  -      --enable-R-shlib
  +      ${if static then "--enable-R-static-lib" else "--enable-R-shlib"}
         AR=$(type -p ar)
         AWK=$(type -p gawk)
         CC=$(type -p cc)
  
positive.code: , curl, Cocoa, Foundation, libobjc, libcxx, tzdata, fetchpatch
  , withRecommendedPackages ? true
  , enableStrictBarrier ? false
  , javaSupport ? (!stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64)
  }:
  
  
negative.code:     substituteInPlace configure --replace "-install_name libR.dylib" "-install_name $out/lib/R/lib/libR.dylib"
    '';
  
    dontDisableStatic = static;
  
    preConfigure = ''
      configureFlagsArray=(
        --disable-lto
  