Revert fix for bug 1392 because it breaks linking with mingw32
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Oct 2013 10:28:57 -0700
changeset 7876 d6373384b5ce
parent 7875 4bb403bb0c06
child 7877 aa7e6130d6e9
Revert fix for bug 1392 because it breaks linking with mingw32
sdl2-config.in
sdl2.pc.in
--- a/sdl2-config.in	Mon Oct 21 02:46:16 2013 -0700
+++ b/sdl2-config.in	Mon Oct 21 10:28:57 2013 -0700
@@ -45,7 +45,7 @@
       echo -I@includedir@/SDL2 @SDL_CFLAGS@
       ;;
 @ENABLE_SHARED_TRUE@    --libs)
-@ENABLE_SHARED_TRUE@      echo -L@libdir@ @SDL_RLD_FLAGS@ -lSDL2
+@ENABLE_SHARED_TRUE@      echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
 @ENABLE_SHARED_TRUE@      ;;
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)
--- a/sdl2.pc.in	Mon Oct 21 02:46:16 2013 -0700
+++ b/sdl2.pc.in	Mon Oct 21 10:28:57 2013 -0700
@@ -10,6 +10,6 @@
 Version: @SDL_VERSION@
 Requires:
 Conflicts:
-Libs: -L${libdir} @SDL_RLD_FLAGS@ -lSDL2
+Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
 Libs.private: @SDL_STATIC_LIBS@
 Cflags: -I${includedir}/SDL2 @SDL_CFLAGS@