flag-o-matic.eclass: filter out '-B/foo' and '-B /foo' equally
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 23 Jun 2019 08:45:11 +0000 (09:45 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 23 Jun 2019 08:53:42 +0000 (09:53 +0100)
commit82b182fb344a841fccb2b599fc4ea0d5c4ab254f
treeebfa26b9e975d0154402e8189b1e7015b49d6ca2
parent92dbeb4238c0ff14f2ebb8fde4038ccb92bf0a44
flag-o-matic.eclass: filter out '-B/foo' and '-B /foo' equally

In bug #687198 Julian noticed that strip-unsupported-flags()
filters out '-B' but not '/foo' in CFLAGS='-B /foo' and causes
breakage.

This change still does not allow -B flag but at least filters
out both '-B' and it's parameter.

Reported-by: Julian Cléaud
Bug: https://bugs.gentoo.org/687198
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/flag-o-matic.eclass
eclass/tests/flag-o-matic.sh