From b93a2e442cbe00d9d901202ea557b6ca04586abb Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Mon, 28 Jun 2021 07:57:40 -0400 Subject: [PATCH] Fix build without static libraries --- sdl12-compat.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdl12-compat.spec b/sdl12-compat.spec index c5c2921..e81b510 100644 --- a/sdl12-compat.spec +++ b/sdl12-compat.spec @@ -122,6 +122,11 @@ this layer. mv %{buildroot}/%{_includedir}/SDL/SDL_config.h %{buildroot}/%{_includedir}/SDL/SDL_config-%{_arch}.h install -m644 %{SOURCE1} %{buildroot}/%{_includedir}/SDL/SDL_config.h +%if ! %{with static} +# Delete leftover static files +rm -rf %{buildroot}%{_libdir}/*.a +%endif + %files %license LICENSE.txt