Build with SDL_STATIC_PIC instead of SDL_STATIC

Resolves: rhbz#1989083
This commit is contained in:
Wim Taymans 2021-08-26 15:28:51 +02:00
parent c7e4928edd
commit 225d6fa9cd

View File

@ -1,6 +1,6 @@
Name: SDL2
Version: 2.0.16
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Cross-platform multimedia library
License: zlib and MIT
URL: http://www.libsdl.org/
@ -106,7 +106,7 @@ export LDFLAGS="%{shrink:%{build_ldflags}}"
-DVIDEO_VULKAN=ON \
-DSSE3=OFF \
-DRPATH=OFF \
-DSDL_STATIC=ON \
-DSDL_STATIC_PIC=ON \
%ifarch ppc64le
-DALTIVEC=OFF \
%endif
@ -141,6 +141,9 @@ install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h
%{_libdir}/lib*.a
%changelog
* Thu Aug 26 2021 Wim Taymans <wtaymans@redhat.com> - 2.0.16-3
- Build with SDL_STATIC_PIC instead of SDL_STATIC
* Thu Aug 26 2021 Wim Taymans <wtaymans@redhat.com> - 2.0.16-2
- Disable libdecor until it is added to centos/RHEL9