Skip to content

Commit 82a2530

Browse files
committed
fix to avoid libxslt to set manually wrong dlopen() flags on android.
1 parent 9b408fe commit 82a2530

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

recipes/libxslt/fix-dlopen.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- libxslt-1.1.27.orig/python/libxsl.py 2012-09-04 16:26:23.000000000 +0200
2+
+++ libxslt-1.1.27/python/libxsl.py 2013-07-29 15:11:04.182227378 +0200
3+
@@ -4,7 +4,7 @@
4+
# loader to work in that mode if feasible
5+
#
6+
import sys
7+
-if not hasattr(sys,'getdlopenflags'):
8+
+if True:
9+
import libxml2mod
10+
import libxsltmod
11+
import libxml2

recipes/libxslt/recipe.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ BUILD_libxslt=$BUILD_PATH/libxslt/$(get_directory $URL_libxslt)
88
RECIPE_libxslt=$RECIPES_PATH/libxslt
99

1010
function prebuild_libxslt() {
11-
true
11+
if [ -f .patched ]; then
12+
return
13+
fi
14+
15+
cd $BUILD_libxslt
16+
try patch -p1 < $RECIPE_libxslt/fix-dlopen.patch
17+
touch .patched
1218
}
1319

1420
function build_libxslt() {

0 commit comments

Comments
 (0)