1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
From: Sam Hocevar <sam+deb@zoy.org>
Date: Sun, 10 Jul 2022 11:19:25 +0100
Subject: Do not propagate -lpthread to sdl-config --libs
Introduced in 1.2.11-1 (Thu, 20 Jul 2006 14:17:18 +0200).
Upstream will not apply it at the moment:
Sam Lantinga 2012-01-22 10:54:21 PST
At some point it was required that multi-threaded programs using pthreads on
Linux link directly to the pthread library. I don't remember all the details,
but it had something to do with initializing C runtime variables correctly.
I'm sure it's not an issue anymore, but I'd rather not apply this patch in 1.2.
I'll go ahead and make this change in 1.3 though.
Last-Update: 2012-01-22
Bug-Debian: http://bugs.debian.org/375822
Forwarded: http://bugzilla.libsdl.org/show_bug.cgi?id=1392
---
sdl-config.in | 2 +-
sdl.pc.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdl-config.in b/sdl-config.in
index e0fcc0c..00bc4b6 100644
--- a/sdl-config.in
+++ b/sdl-config.in
@@ -45,7 +45,7 @@ while test $# -gt 0; do
echo -I@includedir@/SDL @SDL_CFLAGS@
;;
@ENABLE_SHARED_TRUE@ --libs)
-@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
+@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ -lSDL
@ENABLE_SHARED_TRUE@ ;;
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
diff --git a/sdl.pc.in b/sdl.pc.in
index 2d43ac9..9240789 100644
--- a/sdl.pc.in
+++ b/sdl.pc.in
@@ -10,6 +10,6 @@ Description: Simple DirectMedia Layer is a cross-platform multimedia library des
Version: @SDL_VERSION@
Requires:
Conflicts:
-Libs: -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
+Libs: -L${libdir} @SDL_RLD_FLAGS@ -lSDL
Libs.private: @SDL_STATIC_LIBS@
Cflags: -I${includedir}/SDL @SDL_CFLAGS@
|