mogan: Fix missing declaration of clog and cpow

%ci:no-build
This commit is contained in:
termux-pacman-bot
2023-04-10 19:31:09 +00:00
parent 731af40874
commit d8ee55c222
2 changed files with 15 additions and 1 deletions

View File

@@ -7,7 +7,6 @@ TERMUX_PKG_SRCURL=https://github.com/XmacsLabs/mogan/archive/refs/tags/v${TERMUX
TERMUX_PKG_SHA256=0d474267b7a777ae0fb22705c8515bfc24eb2de15ed69aa758dc51377fc6d9f9
TERMUX_PKG_DEPENDS="freetype, ghostscript, libandroid-complex-math, libandroid-execinfo, libandroid-spawn, libc++, libcurl, libiconv, libjpeg-turbo, libpng, libsqlite, mogan-data, qt5-qtbase, qt5-qtsvg, zlib"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools"
TERMUX_PKG_ENABLE_CLANG16_PORTING=false
termux_step_pre_configure() {
LDFLAGS+=" -landroid-complex-math -landroid-execinfo -landroid-spawn"

View File

@@ -0,0 +1,15 @@
https://github.com/termux/termux-packages/issues/15852
--- a/src/Scheme/S7/s7.c
+++ b/src/Scheme/S7/s7.c
@@ -381,6 +381,10 @@
#define _Complex_I 1.0fi
#endif
#endif
+ #if defined __ANDROID__ && __ANDROID_API__ < 26
+double complex clog(double complex);
+double complex cpow(double complex, double complex);
+ #endif
#endif
#ifndef CMPLX