summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2022-12-19 15:17:19 -0800
committerMark Hatle <mark.hatle@amd.com>2023-04-10 09:03:22 -0700
commitd29339d42f6f8b9d26ad623f3b8280c04ee5245d (patch)
tree7878494d1a0af97cec7c33270c183e789ea7fa6b /meta-xilinx-standalone
parentc9fce4352b2b370031c695464ce86b258c751019 (diff)
downloadmeta-xilinx-d29339d42f6f8b9d26ad623f3b8280c04ee5245d.tar.gz
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 <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone')
-rw-r--r--meta-xilinx-standalone/recipes-devtools/gcc/gcc-runtime_%.bbappend2
1 files changed, 2 insertions, 0 deletions
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 = " \
9 --enable-plugins \ 9 --enable-plugins \
10 --with-gnu-as \ 10 --with-gnu-as \
11 --disable-libitm \ 11 --disable-libitm \
12 glibcxx_cv_getentropy=no \
13 glibcxx_cv_arc4random=no \
12" 14"
13 15
14EXTRA_OECONF:append:xilinx-standalone:aarch64:class-target = " \ 16EXTRA_OECONF:append:xilinx-standalone:aarch64:class-target = " \