summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-01-21 18:19:15 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-01-21 18:19:21 +0100
commite4de27b039a858253a3d6b86b22965ab746514b2 (patch)
treeac752ab144dae2cb5247f776141122c0f8651dd7 /media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch
parentdev-php/pecl-translit: Drop old (diff)
downloadgentoo-e4de27b039a858253a3d6b86b22965ab746514b2.tar.gz
gentoo-e4de27b039a858253a3d6b86b22965ab746514b2.tar.bz2
gentoo-e4de27b039a858253a3d6b86b22965ab746514b2.zip
media-libs/sdl2-gfx: Fixed build with sys-devel/slibtool
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.patch29
1 files changed, 29 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..3fd3b8767fe
--- /dev/null
+++ b/media-libs/sdl2-gfx/files/sdl2-gfx-1.0.4-slibtool.patch
@@ -0,0 +1,29 @@
+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
+@@ -21,9 +21,11 @@
+
+ libSDL2_gfx_la_LDFLAGS = \
+ -no-undefined \
+- -release $(LT_RELEASE) \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
++libSDL2_gfx_la_LIBADD = \
++ $(LIBM)
++
+ %.o : %.rc
+ $(WINDRES) $< $@
+