]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
time64.inc: Simplify GLIBC_64BIT_TIME_FLAGS usage
authorTom Hochstein <tom.hochstein@oss.nxp.com>
Thu, 25 Jul 2024 11:59:32 +0000 (06:59 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jul 2024 10:54:28 +0000 (11:54 +0100)
commite8177827f92e71c80c5b63453d8bbd1defbe1fbc
tree6983ba6aea2bc3bcc67a642998bf3d05cf009680
parentf1499c36c1054fc90f7b7268cc95285f2eca72f7
time64.inc: Simplify GLIBC_64BIT_TIME_FLAGS usage

The implementation uses the append operator to include
GLIBC_64BIT_TIME_FLAGS in TARGET_CC_ARCH, but it places the space in
the GLIBC_64BIT_TIME_FLAGS assignment in order to avoid a 'spurious
space' when the value is empty.

68b50d3 time64: Remove leading whitespace from GLIBC_64BIT_TIME_FLAGS

The problem with this is it requires anyone wishing to assign a value
to GLIBC_64BIT_TIME_FLAGS to add the leading space, otherwise this is
the error:

cc1: error: '-Werror=format-security-D_TIME_BITS=64': no option '-Wformat-security-D_TIME_BITS=64'

Add a new constant variable to capture the value needed for the 32-bit
special case, including the space.

Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/time64.inc