> On 28 Nov 2016, at 10:34, Iain Sandoe <i...@codesourcery.com> wrote: > > Hi, > > I used a non-portable shell idiom in the second patch for pr71767. This > caused configuration issues resulting in bootstrap fails for FreeBSD and > hppa64-*-*. > > Fix tested by Andreas and John (and re-checked on Darwin and Linux by me). > > Applied as 242912. > Iain > > gcc/ > > 2016-11-28 Iain Sandoe <i...@codesourcery.com> > > PR target/71767 > * configure.ac (with_ld64): Use portable method to extract the > major part of the version number. > * configure: Regenerated.
Index: gcc/configure.ac =================================================================== --- gcc/configure.ac (revision 242911) +++ gcc/configure.ac (revision 242912) @@ -5309,8 +5309,8 @@ # If the configurer specified a minimum ld64 version to be supported, then use # that to determine feature support. if test x"${gcc_cv_ld64_version}" != x; then - AC_MSG_CHECKING(ld64 major version) - IFS=. read gcc_cv_ld64_major gcc_cv_ld64_minor <<< "${gcc_cv_ld64_version}" + AC_MSG_CHECKING(ld64 specified version) + gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'` AC_MSG_RESULT($gcc_cv_ld64_major) if test "$gcc_cv_ld64_major" -ge 236; then gcc_cv_ld64_export_dynamic=1