libjasper: fix linking with libm for on-device builds
This commit is contained in:
parent
2cb2b7405f
commit
4d3c26d56e
12
packages/libjasper/CMakeLists.txt.patch
Normal file
12
packages/libjasper/CMakeLists.txt.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr jasper-version-2.0.16/CMakeLists.txt jasper-version-2.0.16.mod/CMakeLists.txt
|
||||
--- jasper-version-2.0.16/CMakeLists.txt 2019-03-12 20:04:35.000000000 +0200
|
||||
+++ jasper-version-2.0.16.mod/CMakeLists.txt 2019-08-16 21:46:51.751881755 +0300
|
||||
@@ -323,7 +323,7 @@
|
||||
|
||||
find_library(MATH_LIBRARY m)
|
||||
if (NOT MATH_LIBRARY)
|
||||
- set(MATH_LIBRARY "")
|
||||
+ set(MATH_LIBRARY "-lm")
|
||||
endif()
|
||||
|
||||
################################################################################
|
@ -12,6 +12,3 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-H$TERMUX_PKG_SRCDIR
|
||||
-B$TERMUX_PKG_BUILDDIR
|
||||
"
|
||||
termux_step_pre_configure() {
|
||||
LDFLAGS+=" -lm"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user