Build with SDL_STATIC_PIC and SDL_STATIC

Resolves: rhbz#1989083
This commit is contained in:
Wim Taymans 2021-08-26 16:41:00 +02:00
parent 225d6fa9cd
commit cf64528680
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: SDL2
Version: 2.0.16
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Cross-platform multimedia library
License: zlib and MIT
URL: http://www.libsdl.org/
@ -106,6 +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 \
@ -141,6 +142,10 @@ 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-4
- Build with SDL_STATIC_PIC and SDL_STATIC to actually make the
static version of SDL2
* Thu Aug 26 2021 Wim Taymans <wtaymans@redhat.com> - 2.0.16-3
- Build with SDL_STATIC_PIC instead of SDL_STATIC