diff --git a/SDL2.spec b/SDL2.spec index 062b60b..9e2cd51 100644 --- a/SDL2.spec +++ b/SDL2.spec @@ -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