From d29339d42f6f8b9d26ad623f3b8280c04ee5245d Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Mon, 19 Dec 2022 15:17:19 -0800 Subject: standalone gcc-runtime_%.bbappend: Add workaround for getentropy and related getentropy and the related arc4random function are defined in unistd.h, they appear to be defined in some iterations of libgloss. However the defintion is not enough in the general case, which causes C++ linkage to fail with: libstdc++.a(random.o): in function `std::(anonymous namespace)::__libc_getentropy(void*)': (.text._ZNSt12_GLOBAL__N_117__libc_getentropyEPv+0x14): *undefined reference to `getentropy'* This change doesn't remove getentropy or arc4random, but does instruct libstdc++ to not use either function. Signed-off-by: Mark Hatle --- meta-xilinx-standalone/recipes-devtools/gcc/gcc-runtime_%.bbappend | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-xilinx-standalone') diff --git a/meta-xilinx-standalone/recipes-devtools/gcc/gcc-runtime_%.bbappend b/meta-xilinx-standalone/recipes-devtools/gcc/gcc-runtime_%.bbappend index cbf43008..629dd99f 100644 --- a/meta-xilinx-standalone/recipes-devtools/gcc/gcc-runtime_%.bbappend +++ b/meta-xilinx-standalone/recipes-devtools/gcc/gcc-runtime_%.bbappend @@ -9,6 +9,8 @@ EXTRA_OECONF:append:xilinx-standalone:class-target = " \ --enable-plugins \ --with-gnu-as \ --disable-libitm \ + glibcxx_cv_getentropy=no \ + glibcxx_cv_arc4random=no \ " EXTRA_OECONF:append:xilinx-standalone:aarch64:class-target = " \ -- cgit v1.2.3-54-g00ecf