SHA256
1
0
forked from pool/SDL2
Jan Engelhardt 2015-01-08 13:38:01 +00:00 committed by Git OBS Bridge
parent 0fc864a705
commit b5d3780724

View File

@ -109,7 +109,8 @@ dos2unix CREDITS.txt
dos2unix COPYING.txt
%build
%configure \
# In this instance, we do want --with-pic because of libSDL2main.a.
%configure --with-pic \
--disable-rpath \
--disable-alsa-shared \
--disable-video-directfb
@ -119,7 +120,7 @@ make %{?_smp_mflags}
make install DESTDIR="%buildroot"
rm -f "%buildroot/%_libdir"/*.la
# We do not want static libs, but using --disable-static leads to make aborting
# halfway through.
# halfway through. SDL2main.a we need to keep(?) for the stub symbol.
find "%buildroot/%_libdir" -type f -name "*.a" ! -name "libSDL2main.a" -delete
%post -n %lname -p /sbin/ldconfig