Ticket #18229: dont_lose_libz_libbz2_in_configure.patch

File dont_lose_libz_libbz2_in_configure.patch, 1.2 KB (added by leif, 5 years ago)

Tentative patch (to be put into build/pkgs/r/patches/)

  • R-3.2.0/m4/R.m4

    Fix bug in R_PCRE autoconf macro which leads to 'configure' losing '-lz'
    and/or '-lbz2' from LIBS (under certain circumstances, and only relevant
    if "system" versions of these libraries are used).  (cf. #18229)
    
    
     
    31073107#endif
    31083108}
    31093109]])], [r_cv_have_pcre810=yes], [r_cv_have_pcre810=no], [r_cv_have_pcre810=no])])
    3110 fi
    31113110if test "x${r_cv_have_pcre810}" != xyes; then
    31123111  have_pcre=no
    31133112  LIBS="${r_save_LIBS}"
    31143113fi
     3114fi
    31153115AC_MSG_CHECKING([whether PCRE support needs to be compiled])
    31163116if test "x${r_cv_have_pcre810}" = xyes; then
    31173117  AC_MSG_RESULT([no])
  • R-3.2.0/configure

     
    3454334543fi
    3454434544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $r_cv_have_pcre810" >&5
    3454534545$as_echo "$r_cv_have_pcre810" >&6; }
    34546 fi
    3454734546if test "x${r_cv_have_pcre810}" != xyes; then
    3454834547  have_pcre=no
    3454934548  LIBS="${r_save_LIBS}"
    3455034549fi
     34550fi
    3455134551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PCRE support needs to be compiled" >&5
    3455234552$as_echo_n "checking whether PCRE support needs to be compiled... " >&6; }
    3455334553if test "x${r_cv_have_pcre810}" = xyes; then