From 59929b836fe09012f727f48be392ff540efb5afb Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 1 Dec 2022 11:26:25 -0800 Subject: pseudo: Disable LFS on 32bit arches pseudo overrides certain libc functions which are aliases when LFS64 is enabled. In anycase pseudo may not be of much use on 32bit systems (From OE-Core rev: 9e5ec22183a8b0f16817fd3dd2e3b45b292a3a09) Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-devtools/pseudo/pseudo_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'meta/recipes-devtools/pseudo/pseudo_git.bb') diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb index c34580b4ff..8bb8993439 100644 --- a/meta/recipes-devtools/pseudo/pseudo_git.bb +++ b/meta/recipes-devtools/pseudo/pseudo_git.bb @@ -17,5 +17,12 @@ SRCREV = "c9670c27ff67ab899007ce749254b16091577e55" S = "${WORKDIR}/git" PV = "1.9.0+git${SRCPV}" +# largefile and 64bit time_t support adds these macros via compiler flags globally +# remove them for pseudo since pseudo intercepts some of the functions which will be +# aliased due to this e.g. open/open64 and it will complain about duplicate definitions +# pseudo on 32bit systems is not much of use anyway and these features are not of much +# use for it. +TARGET_CPPFLAGS:remove = "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" + # error: use of undeclared identifier '_STAT_VER' COMPATIBLE_HOST:libc-musl = 'null' -- cgit v1.2.3-54-g00ecf