diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-11-28 10:29:19 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-11-28 10:29:19 +0000 |
commit | 188f30566926f01b95fdd7dc50c53a675c9ce362 (patch) | |
tree | 09e841696e773b79fda5d9b34ac8b5b947f23a0b /gcc/configure.ac | |
parent | 6156f076311221055bd672788acb3180ac624258 (diff) |
[Darwin, config] Fix version number extraction to portable method
The method used in the applied patch caused configuration errors on freeBSD and hppa.
2016-11-28 Iain Sandoe <iain@codesourcery.com>
PR target/71767
* configure.ac (with_ld64): Use portable method to extract the
major part of the version number.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242912 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index b2798e78db7..268efdb3021 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -5309,8 +5309,8 @@ if test x"$ld64_flag" = x"yes"; then # 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 |