diff options
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rw-r--r-- | contrib/config-list.mk | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index f2d21db36e1..58d80f01d72 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2015-01-05 Jan-Benedict Glaw <jbglaw@lug-owl.de> + + * config-list.mk: Use shortest match for OPT to find the actual + target name. + 2014-12-17 Sergio Durigan Junior <sergiodj@redhat.com> * dg-extract-results.sh: Use --text with grep to avoid issues with diff --git a/contrib/config-list.mk b/contrib/config-list.mk index 16900e19e53..db2bad05b12 100644 --- a/contrib/config-list.mk +++ b/contrib/config-list.mk @@ -97,8 +97,7 @@ $(LIST): make-log-dir -mkdir $@ ( \ cd $@ && \ - echo $@ && \ - TGT=`echo $@ | sed -e 's/^\(.*\)OPT.*$$/\1/'` && \ + TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \ TGT=`../../gcc/config.sub $$TGT` && \ case $$TGT in \ *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \ |