diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2019-03-25 14:32:09 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2019-03-25 14:32:09 +0000 |
commit | 077b866beda3f9c95fa5de426b9f51ee120a2b0e (patch) | |
tree | 6a330a8b26b3ee9cc3c1e6057d734ccf19688990 /graphics | |
parent | 793ff99596bcb1c69d95deb7ae712a8c71600280 (diff) | |
download | ports-077b866beda3f9c95fa5de426b9f51ee120a2b0e.tar.gz ports-077b866beda3f9c95fa5de426b9f51ee120a2b0e.zip |
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)
Notes
Notes:
svn path=/head/; revision=496824
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/sdl_ttf/files/patch-bug1401 | 14 |
1 files changed, 14 insertions, 0 deletions
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) \ |