Fix build without static libraries

This commit is contained in:
Neal Gompa 2021-06-28 07:57:40 -04:00
parent 6bf37b39d6
commit b93a2e442c

View File

@ -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