summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-01-23 22:34:28 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-01-23 22:38:54 +0100
commitd879514d47aecf06486cb36be7ff84b81f04bca2 (patch)
treef366a55c904ecd1a59e626a468052efbbb5bc7b0 /media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch
parentdev-libs/ding-libs: Drop 0.4.0, 0.5.0, 0.6.0 (diff)
downloadgentoo-d879514d47aecf06486cb36be7ff84b81f04bca2.tar.gz
gentoo-d879514d47aecf06486cb36be7ff84b81f04bca2.tar.bz2
gentoo-d879514d47aecf06486cb36be7ff84b81f04bca2.zip
media-libs/sdl2-gfx: Fixed build with sys-devel/slibtool
this time without breaking .so libnames Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch')
-rw-r--r--media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch b/media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch
new file mode 100644
index 00000000000..e4895c30951
--- /dev/null
+++ b/media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch
@@ -0,0 +1,26 @@
+This fixes build with sys-devel/slibtool
+
+--- SDL2_gfx-1.0.4/configure.in
++++ SDL2_gfx-1.0.4/configure.in
+@@ -58,6 +58,9 @@
+ fi
+ AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
+
++AC_CHECK_LIBM
++AC_SUBST([LIBM])
++
+ case "$host" in
+ *-*-beos*)
+ ac_default_prefix=/boot/develop/tools/gnupro
+--- SDL2_gfx-1.0.4/Makefile.am
++++ SDL2_gfx-1.0.4/Makefile.am
+@@ -24,6 +24,9 @@
+ -release $(LT_RELEASE) \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
++libSDL2_gfx_la_LIBADD = \
++ $(LIBM)
++
+ %.o : %.rc
+ $(WINDRES) $< $@
+