Blame SOURCES/sdl12-compat-sdlconfig-multilib.patch

a8bd53
From 3cfbf8e889b50d5d19795d6f81f66345c70ce4e0 Mon Sep 17 00:00:00 2001
a8bd53
From: Neal Gompa <ngompa@fedoraproject.org>
a8bd53
Date: Wed, 9 Jun 2021 06:57:51 -0400
a8bd53
Subject: [PATCH] Remove libdir definition from sdl-config for multilib support
a8bd53
a8bd53
If we export the library directory, then the contents of sdl-config
a8bd53
wind up differing across architectures, which will make sdl12-compat
a8bd53
not multilib-safe.
a8bd53
a8bd53
Thus, strip out the libdir stuff so that this isn't a problem.
a8bd53
---
a8bd53
 sdl-config.in | 5 ++---
a8bd53
 1 file changed, 2 insertions(+), 3 deletions(-)
a8bd53
a8bd53
diff --git a/sdl-config.in b/sdl-config.in
a8bd53
index 528a355..addabd8 100755
a8bd53
--- a/sdl-config.in
a8bd53
+++ b/sdl-config.in
a8bd53
@@ -10,7 +10,6 @@
a8bd53
 prefix=@CMAKE_INSTALL_PREFIX@
a8bd53
 exec_prefix=${prefix}
a8bd53
 exec_prefix_set=no
a8bd53
-libdir=@CMAKE_INSTALL_FULL_LIBDIR@
a8bd53
 includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
a8bd53
 
a8bd53
 @ENABLE_STATIC_FALSE@usage="\
a8bd53
@@ -53,11 +52,11 @@ while test $# -gt 0; do
a8bd53
       echo -I${includedir}/SDL @SDL_CFLAGS@
a8bd53
       ;;
a8bd53
 @ENABLE_SHARED_TRUE@    --libs)
a8bd53
-@ENABLE_SHARED_TRUE@      echo -L${libdir} @SDL_RLD_FLAGS@ @SDL_LIBS@
a8bd53
+@ENABLE_SHARED_TRUE@      echo @SDL_RLD_FLAGS@ @SDL_LIBS@
a8bd53
 @ENABLE_SHARED_TRUE@      ;;
a8bd53
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
a8bd53
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)
a8bd53
-@ENABLE_STATIC_TRUE@      echo -L${libdir} @SDL_LIBS@ @SDL_STATIC_LIBS@
a8bd53
+@ENABLE_STATIC_TRUE@      echo @SDL_LIBS@ @SDL_STATIC_LIBS@
a8bd53
 @ENABLE_STATIC_TRUE@      ;;
a8bd53
     *)
a8bd53
       echo "${usage}" 1>&2
a8bd53
-- 
a8bd53
2.31.1
a8bd53