mirror of
https://abf.rosa.ru/djam/SDL2.git
synced 2025-02-23 14:42:58 +00:00
Properly deal with static libraries to avoid broken cmake config
This commit is contained in:
parent
dd5194d744
commit
1e9ac4abed
1 changed files with 5 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
|||
Summary: Simple DirectMedia Layer
|
||||
Name: SDL2
|
||||
Version: 2.0.7
|
||||
Release: 3
|
||||
Release: 4
|
||||
License: Zlib
|
||||
Group: System/Libraries
|
||||
Url: http://www.libsdl.org/
|
||||
|
@ -82,6 +82,7 @@ applications which will use %{name}.
|
|||
%{_libdir}/cmake/SDL2/
|
||||
%{_libdir}/pkgconfig/sdl2.pc
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/libSDL2main.a
|
||||
%dir %{_includedir}/SDL2
|
||||
%{_includedir}/SDL2/*.h
|
||||
%{_datadir}/aclocal/sdl2.m4
|
||||
|
@ -94,11 +95,11 @@ applications which will use %{name}.
|
|||
|
||||
%build
|
||||
%global optflags %{optflags} -mstackrealign
|
||||
%cmake -DRPATH:BOOL=OFF
|
||||
%cmake \
|
||||
-DRPATH:BOOL=OFF \
|
||||
-DSDL_STATIC:BOOL=OFF
|
||||
%make
|
||||
|
||||
%install
|
||||
%makeinstall_std -C build
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.a
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue