From 5ae2ebcea71d94bb0a91313601b091c6e8f1bb7f Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Thu, 19 Aug 2021 22:14:52 +0300 Subject: [PATCH] sdl-ttf: fix undefined reference to ceilf --- x11-packages/sdl-ttf/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x11-packages/sdl-ttf/build.sh b/x11-packages/sdl-ttf/build.sh index 74dc8d5a7..73f96e9d7 100644 --- a/x11-packages/sdl-ttf/build.sh +++ b/x11-packages/sdl-ttf/build.sh @@ -7,3 +7,7 @@ TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=724cd895ecf4da319a3ef164892b72078bd92632a5d812111261cde248ebcdb7 TERMUX_PKG_DEPENDS="freetype, sdl" + +termux_step_pre_configure() { + LDFLAGS="${LDFLAGS/-Wl,--as-needed/} -lm" +}