mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-24 07:21:26 +00:00
Try building working binaries for non-ancient Android
Based on help from admin@hypothermic.nl
This commit is contained in:
parent
72bdf7f20e
commit
99c0efc467
2
Makefile
2
Makefile
|
@ -64,7 +64,7 @@ cross-android-old:
|
||||||
#Position-indepedent build for modern android
|
#Position-indepedent build for modern android
|
||||||
cross-android:
|
cross-android:
|
||||||
@(cd src; $(MAKE) base64u.c)
|
@(cd src; $(MAKE) base64u.c)
|
||||||
@(cd src; ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk APP_PLATFORM=android-16)
|
@(cd src; ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.16.mk APP_PLATFORM=android-16)
|
||||||
|
|
||||||
iodine-latest-android.zip: iodine-latest
|
iodine-latest-android.zip: iodine-latest
|
||||||
@mv iodine-latest iodine-latest-android
|
@mv iodine-latest iodine-latest-android
|
||||||
|
|
26
src/Android.16.mk
Normal file
26
src/Android.16.mk
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#
|
||||||
|
# iodine for Android
|
||||||
|
#
|
||||||
|
# by Marcel Bokhorst
|
||||||
|
# http://blog.bokhorst.biz/5123/computers-en-internet/iodine-for-android/
|
||||||
|
#
|
||||||
|
# cd iodine-0.6.0-rc1/src
|
||||||
|
# make base64u.h base64u.c
|
||||||
|
# .../ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=Android.mk
|
||||||
|
#
|
||||||
|
|
||||||
|
LOCAL_PATH:= $(call my-dir)
|
||||||
|
|
||||||
|
HEAD_COMMIT = `git rev-parse --short HEAD`
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_MODULE := iodine
|
||||||
|
LOCAL_SRC_FILES := tun.c dns.c read.c encoding.c login.c base32.c base64.c base64u.c base128.c md5.c common.c iodine.c client.c util.c
|
||||||
|
LOCAL_CFLAGS := -c -DANDROID -DLINUX -DIFCONFIGPATH=\"/system/bin/\" -Wall -DGITREVISION=\"$(HEAD_COMMIT)\"
|
||||||
|
LOCAL_LDLIBS := -lz
|
||||||
|
LOCAL_CFLAGS += -fPIE
|
||||||
|
LOCAL_LDFLAGS += -fPIE -pie
|
||||||
|
|
||||||
|
include $(BUILD_EXECUTABLE)
|
||||||
|
|
Loading…
Reference in a new issue