OSDN Git Service

Makefile: ignore long options
authorAlexey Neyman <stilor@att.net>
Thu, 22 Jul 2021 02:08:46 +0000 (19:08 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jul 2021 08:15:51 +0000 (10:15 +0200)
commit14833e24dea49303ebc2464813601054b6cdfcac
treea6370fbbf6fad71a08d76a84b0f2ff4410802c6f
parente4adb09f7952fd37b7f1ba3df377d54d0823e682
Makefile: ignore long options

When searching for options like -n in MAKEFLAGS, current code may result
in a false positive match when make is invoked with long options like
--no-print-directory. This has been observed with certain versions of
host make (e.g. 3.82) while building the Qemu package in buildroot.

Filter out such long options before searching for one-character options.

Signed-off-by: Alexey Neyman <stilor@att.net>
Message-Id: <20210722020846.3678817-1-stilor@att.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile