Skip to content

Commit 6ea1ce7

Browse files
committed
Fixed compilation for NDK r12
1 parent 81bf02b commit 6ea1ce7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

android/build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,7 @@ $BUILDDIR/setCrossEnvironment.sh \
10111011
./configure \
10121012
--host=$TARGET_HOST \
10131013
--prefix=$TARGET_DIR/usr \
1014+
--without-libuuid \
10141015
|| exit 1
10151016

10161017
cp -f `which libtool` ./
@@ -1335,7 +1336,9 @@ env CFLAGS=" -DDEBUG \
13351336
-I$BUILDDIR/../../../../../../jni/crypto/include" \
13361337
LDFLAGS="-L$BUILDDIR -L$BUILDDIR/../../../../../../jni/crypto/lib-$TARGET_ARCH" \
13371338
./setCrossEnvironment.sh \
1338-
LIBS="-lfontenc -lfreetype -llog -lSDL -lGLESv1_CM -landroid-shmem -lcrypto" \
1339+
LIBS="-lfontenc -lfreetype -llog -lSDL -lGLESv1_CM -landroid-shmem -l:libcrypto.so.sdl.0.so" \
1340+
OPENSSL_LIBS=-l:libcrypto.so.sdl.0.so \
1341+
LIBSHA1_LIBS=-l:libcrypto.so.sdl.0.so \
13391342
../../configure \
13401343
--host=$TARGET_HOST \
13411344
--prefix=$TARGET_DIR/usr \

android/xproto.diff

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
--- Xos_r.h 2013-03-30 01:21:00.000000000 +0200
22
+++ Xos_r.h 2013-11-01 19:59:53.048246394 +0200
3+
@@ -232,7 +232,7 @@
4+
# define _XGetpwuid(u,p) getpwuid((u))
5+
# define _XGetpwnam(u,p) getpwnam((u))
6+
7+
-#elif !defined(XOS_USE_MTSAFE_PWDAPI) || defined(XNO_MTSAFE_PWDAPI)
8+
+#elif !defined(XOS_USE_MTSAFE_PWDAPI) || defined(XNO_MTSAFE_PWDAPI) || defined(__ANDROID__)
9+
/* UnixWare 2.0, or other systems with thread support but no _r API. */
10+
# define X_NEEDS_PWPARAMS
11+
typedef struct {
312
@@ -289,16 +289,7 @@
413
((p).pws.pw_passwd = (p).pws.pw_name + (p).len + 1), \
514
((p).len = strlen((p).pwp->pw_passwd)), \

0 commit comments

Comments
 (0)