termux-packages/packages/libzen/02_add_libandroid_glob.patch

43 lines
1.6 KiB
Diff
Executable File

diff -r -u old/Project/GNU/Library/configure.ac ./Project/GNU/Library/configure.ac
--- old/Project/GNU/Library/configure.ac 2021-03-26 12:34:30.841028100 +0100
+++ ./Project/GNU/Library/configure.ac 2021-03-26 12:39:42.820053800 +0100
@@ -144,10 +144,10 @@
dnl Common
dnl
if test "$enable_shared" = "yes"; then
- ZenLib_LIBS="-L$(pwd)/.libs -lzen $ZenLib_LIBS"
+ ZenLib_LIBS="-L$(pwd)/.libs -lzen -landroid-glob $ZenLib_LIBS"
fi
if test "$enable_static" = "yes"; then
- ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a $ZenLib_LIBS_Static"
+ ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -landroid-glob $ZenLib_LIBS_Static"
fi
dnl #########################################################################
@@ -252,7 +252,7 @@
dnl -------------------------------------------------------------------------
dnl External libs
dnl
-LDFLAGS="$LDFLAGS"
+LDFLAGS="$LDFLAGS" -landroid-glob
dnl -------------------------------------------------------------------------
dnl Check if thread safe variants of time functions are available
Only in ./Project/GNU/Library: libzen-config.in
diff -r -u old/Project/GNU/Library/libzen.pc.in ./Project/GNU/Library/libzen.pc.in
--- old/Project/GNU/Library/libzen.pc.in 2021-03-26 12:34:52.385894900 +0100
+++ ./Project/GNU/Library/libzen.pc.in 2021-03-26 12:39:17.510541700 +0100
@@ -4,10 +4,10 @@
includedir=@includedir@
Unicode=@ZenLib_Unicode@
WstringMissing=@ZenLib_wstring_missing@
-Libs_Static=@libdir@/libzen.a
+Libs_Static=@libdir@/libzen.a -landroid-glob
Name: libzen
Version: @PACKAGE_VERSION@
Description: ZenLib
-Libs: -L${libdir} -lzen
+Libs: -L${libdir} -lzen -landroid-glob
Cflags: -I${includedir} @ZenLib_CXXFLAGS@