From 077b866beda3f9c95fa5de426b9f51ee120a2b0e Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 25 Mar 2019 14:32:09 +0000 Subject: graphics/sdl_ttf: unbreak --no-allow-shlib-undefined with Gold or LLD 9 Clang 8 on x86 with -O1 converts ceil(float) to ceilf() but wants -msse4.1 to use builtin. GCC 8 on x86 and aarch64 with -O1 and Clang 8 on aarch64 always use builtin ceil(). To avoid guessing when library call will be made just append -lm explicitly. ld: error: ./.libs/libSDL_ttf.so: undefined reference to ceilf PR: 236141 Reported by: pkg-fallout (via antoine) Obtained from: upstream Approved by: portmgr blanket (blocks 144 consumers) --- graphics/sdl_ttf/files/patch-bug1401 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 graphics/sdl_ttf/files/patch-bug1401 (limited to 'graphics/sdl_ttf') diff --git a/graphics/sdl_ttf/files/patch-bug1401 b/graphics/sdl_ttf/files/patch-bug1401 new file mode 100644 index 000000000000..b59dad1dea78 --- /dev/null +++ b/graphics/sdl_ttf/files/patch-bug1401 @@ -0,0 +1,14 @@ +https://bugzilla.libsdl.org/show_bug.cgi?id=1401 +https://hg.libsdl.org/SDL_ttf/rev/e826b2504c66 + +--- Makefile.in.orig 2012-01-15 04:44:08 UTC ++++ Makefile.in +@@ -68,7 +68,7 @@ am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(p + "$(DESTDIR)$(libSDL_ttfincludedir)" + libLTLIBRARIES_INSTALL = $(INSTALL) + LTLIBRARIES = $(lib_LTLIBRARIES) +-libSDL_ttf_la_LIBADD = ++libSDL_ttf_la_LIBADD = @MATHLIB@ + am_libSDL_ttf_la_OBJECTS = SDL_ttf.lo + libSDL_ttf_la_OBJECTS = $(am_libSDL_ttf_la_OBJECTS) + libSDL_ttf_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ -- cgit v1.2.3