mirror of
https://git.freebsd.org/ports.git
synced 2025-05-18 01:53:13 -04:00
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)
14 lines
553 B
Text
14 lines
553 B
Text
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) \
|