summaryrefslogtreecommitdiff
path: root/user/sdl2/sdl2-soname.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-03 17:36:31 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-03 17:36:31 +0000
commit06aa8d70999f46cab146022ce65ec82f5e5a2f41 (patch)
tree0c50b4c650cd674ce9481673fdabee358e4ff396 /user/sdl2/sdl2-soname.patch
parent78a3bf184c2fee330b01814bdb76b7b394c0eafa (diff)
downloadpackages-06aa8d70999f46cab146022ce65ec82f5e5a2f41.tar.gz
packages-06aa8d70999f46cab146022ce65ec82f5e5a2f41.tar.bz2
packages-06aa8d70999f46cab146022ce65ec82f5e5a2f41.tar.xz
packages-06aa8d70999f46cab146022ce65ec82f5e5a2f41.zip
user/sdl2: Fix sdl2-config/.pc
Diffstat (limited to 'user/sdl2/sdl2-soname.patch')
-rw-r--r--user/sdl2/sdl2-soname.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/sdl2/sdl2-soname.patch b/user/sdl2/sdl2-soname.patch
new file mode 100644
index 000000000..8f040e30c
--- /dev/null
+++ b/user/sdl2/sdl2-soname.patch
@@ -0,0 +1,13 @@
+The library name is SDL2-2.0, not SDL2. This fixes builds against SDL.
+
+--- SDL2-2.0.10/CMakeLists.txt.old 2019-07-25 04:32:36.000000000 +0000
++++ SDL2-2.0.10/CMakeLists.txt 2020-01-03 17:23:42.451699149 +0000
+@@ -224,7 +224,7 @@
+
+ # Those are used for pkg-config and friends, so that the SDL2.pc, sdl2-config,
+ # etc. are created correctly.
+-set(SDL_LIBS "-lSDL2")
++set(SDL_LIBS "-lSDL2-2.0")
+ set(SDL_CFLAGS "")
+
+ # When building shared lib for Windows with MinGW,