Accepting request 1130823 from home:Guillaume_G:PAC_BTI

- Fix build on 32-bit x86

OBS-URL: https://build.opensuse.org/request/show/1130823
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=40
This commit is contained in:
David Disseldorp 2023-12-05 01:56:24 +00:00 committed by Git OBS Bridge
parent f992da1d2d
commit 16397656c0
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 4 16:39:29 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix build on 32-bit x86
-------------------------------------------------------------------
Thu Nov 30 15:26:15 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -71,6 +71,11 @@ for the Linux-native io_uring.
%build
# not autotools, so configure macro doesn't work
%set_build_flags
%ifarch %{ix86}
# Otherwise 32-bit x86 fails with: undefined reference to `__stack_chk_fail_local'
export CFLAGS="%{optflags} -fno-stack-protector"
export CPPFLAGS="%{optflags} -fno-stack-protector"
%endif
sh ./configure --prefix=%{_prefix} \
--includedir=%{_includedir} \
--libdir=/%{_libdir} \