liburing/0001-enable-libc.patch
Stefan Hajnoczi 1501c4595e Fix i686 build failure due to nolibc
liburing builds without libc (-ffreestanding) by default. Unfortunately,
Fedora's compiler flags cause a conflict because the stack protector
requires symbols that are in libc. Disable nolibc for now.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2023-06-20 15:13:43 +02:00

23 lines
771 B
Diff

diff --git a/configure b/configure
index 28f3eb0..9f7cff4 100755
--- a/configure
+++ b/configure
@@ -413,9 +413,15 @@ int main(void){
#endif
}
EOF
-if compile_prog "" "" "nolibc support"; then
- liburing_nolibc="yes"
-fi
+# Temporarily disable nolibc because false positives exist and compilation may
+# fail later. The issue is that compile_prog does not use the CFLAGS modified
+# for nolibc, so it cannot detect when nolibc won't work (e.g. due to the gcc
+# stack protector requiring __stack_chk_fail_local from libc on i686).
+#
+# if compile_prog "" "" "nolibc support"; then
+# liburing_nolibc="yes"
+# fi
+liburing_nolibc="no"
print_config "nolibc support" "$liburing_nolibc";
#############################################################################