]> code.ossystems Code Review - openembedded-core.git/commit
glibc.inc: improve optimisation level sanity checking
authorAndre McCurdy <armccurdy@gmail.com>
Wed, 24 Feb 2016 22:39:33 +0000 (14:39 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 28 Feb 2016 11:32:37 +0000 (11:32 +0000)
commit9d72015e3458c78a9f0d20ad3dc27c8a9bb1069c
treeb6222f81e6c8bb459fa21202130c67397edd2b8d
parent18b3f229ab4c730936e3cf2b700a269920e2ec71
glibc.inc: improve optimisation level sanity checking

- Avoid code duplication to handle -O, -O1 and -Os cases

- Consider the effective optimisation level only (avoids spurious
  warnings if multiple optimisation flags are present).

- Prefix warnings with PN instead of hardcoding "glibc" (avoids
  confusing warnings since the test is also applied to glibc-initial,
  nativesdk-glibc, nativesdk-glibc-initial, etc, and each could
  potentually have different optimisation flags).

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc.inc