From b5d37807248506706b1923ec8bfa61674bab6ad04dd53af36ce122edbb9e1e14 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 8 Jan 2015 13:38:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=34 --- SDL2.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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