> > I would like to build theopensslsources from the android platform
I made a bit of progress and I think I will be able to get it to work.
You need to do this:
# Get the source.
git clone git://
android.git.kernel.org/platform/external/openssl.git
# Go into the directory.
cd openssl
# Trick the NDK into thinking this is the project dir. This is the
easiest and only way I could find to do it.
touch AndroidManifest.xml
# Give the NDK build system the Application.mk it needs. I couldn't
find a way to specify this manually, and it seems the jni bit is
hardcoded.
mkdir jni
echo "APP_PROJECT_PATH := $(pwd)" >> jni/Application.mk
echo "APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/Android.mk" >> jni/
Application.mk
# Edit crypto/Android to fix the include paths.
nano crypto/Android.mk
# Change the last bits to:
#################
LOCAL_C_INCLUDES += \
$(NDK_PROJECT_PATH) \
$(NDK_PROJECT_PATH)/include
# external/zlib
# LOCAL_SHARED_LIBRARIES += libz
#ifneq ($(TARGET_SIMULATOR),true)
# LOCAL_SHARED_LIBRARIES += libdl
#endif
LOCAL_LDLIBS += -lz
# LOCAL_LDLIBS += -ldl
#################
Then it actually starts successfully compiling things, but gets stuck
at some assembly stuff.