aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-02 23:21:23 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-03 22:35:19 +0000
commit194bd4136459e7a38510830b2fb0938d892ece45 (patch)
tree816e42c6d4628bb42be1317b25fb29d2bbaa1e8f
parent025a7a4007d4f6f64c861dc498dab68eaa650c2d (diff)
downloadopenembedded-core-contrib-194bd4136459e7a38510830b2fb0938d892ece45.tar.gz
openembedded-core-contrib-194bd4136459e7a38510830b2fb0938d892ece45.tar.bz2
openembedded-core-contrib-194bd4136459e7a38510830b2fb0938d892ece45.zip
tclibc-musl: Add -D__USE_TIME_BITS64 to c/c++ flags
This is needed for 64bit time_t support on 32bit architectures see [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/distro/include/tclibc-musl.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/distro/include/tclibc-musl.inc b/meta/conf/distro/include/tclibc-musl.inc
index 8badbbb40a6..22f8214ba32 100644
--- a/meta/conf/distro/include/tclibc-musl.inc
+++ b/meta/conf/distro/include/tclibc-musl.inc
@@ -18,6 +18,7 @@ DISTRO_FEATURES_BACKFILL_CONSIDERED += "ldconfig"
#USE_NLS ?= "no"
CXXFLAGS += "-fvisibility-inlines-hidden"
+TARGET_CC_ARCH += "-D__USE_TIME_BITS64"
IMAGE_LINGUAS = ""