2015-12-22 13:12:24 +01:00
|
|
|
diff -u -r ../p7zip_15.09/makefile.android_arm ./makefile.android_arm
|
|
|
|
--- ../p7zip_15.09/makefile.android_arm 2015-09-13 14:15:17.000000000 -0400
|
|
|
|
+++ ./makefile.android_arm 2015-12-22 06:33:41.608388305 -0500
|
|
|
|
@@ -1,58 +1,38 @@
|
2015-12-21 18:32:50 +01:00
|
|
|
#
|
|
|
|
-# makefile for ANDROID (generic ARM)
|
|
|
|
+# makefile for Android with Termux
|
|
|
|
#
|
|
|
|
|
|
|
|
-ANDROID_NDK_HOME=$(HOME)/ANDROID/android-ndk-r5c
|
|
|
|
-ANDROID_NDK_BIN=$(ANDROID_NDK_HOME)/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
|
|
|
|
-
|
|
|
|
-# -fpic -Os
|
|
|
|
-# -fstack-protector
|
|
|
|
ANDROID_FLAGS=\
|
|
|
|
-ffunction-sections \
|
|
|
|
-funwind-tables \
|
2015-12-22 13:12:24 +01:00
|
|
|
- -D__ARM_ARCH_5__ \
|
|
|
|
- -D__ARM_ARCH_5T__ \
|
|
|
|
- -D__ARM_ARCH_5E__ \
|
|
|
|
- -D__ARM_ARCH_5TE__ \
|
2015-12-21 18:32:50 +01:00
|
|
|
-DANDROID \
|
|
|
|
-DANDROID_NDK \
|
|
|
|
+ -D_UNICODE \
|
|
|
|
+ -DUNICODE \
|
|
|
|
-Wno-psabi \
|
|
|
|
- -march=armv5te \
|
|
|
|
- -mtune=xscale \
|
|
|
|
- -msoft-float \
|
2015-12-22 13:12:24 +01:00
|
|
|
- -mthumb \
|
2015-12-21 18:32:50 +01:00
|
|
|
-fomit-frame-pointer \
|
|
|
|
-fno-strict-aliasing -finline-limit=64 \
|
|
|
|
- -I$(ANDROID_NDK_HOME)/sources/cxx-stl/system/include \
|
|
|
|
- -I$(ANDROID_NDK_HOME)/platforms/android-3/arch-arm/usr/include \
|
|
|
|
- -Wa,--noexecstack
|
|
|
|
+ -Wa,--noexecstack
|
|
|
|
|
|
|
|
ANDROID_LINK=-v \
|
|
|
|
-Wl,--gc-sections -Wl,-z,nocopyreloc \
|
|
|
|
- --sysroot=$(ANDROID_NDK_HOME)/platforms/android-3/arch-arm \
|
|
|
|
- $(ANDROID_NDK_HOME)/platforms/android-3/arch-arm/usr/lib/libc.so \
|
|
|
|
- $(ANDROID_NDK_HOME)/platforms/android-3/arch-arm/usr/lib/libstdc++.so \
|
|
|
|
- $(ANDROID_NDK_HOME)/platforms/android-3/arch-arm/usr/lib/libm.so \
|
|
|
|
-Wl,--no-undefined -Wl,-z,noexecstack \
|
|
|
|
- -L$(ANDROID_NDK_HOME)/platforms/android-3/arch-arm/usr/lib \
|
|
|
|
- -lstdc++ -Wl,-rpath-link=$(ANDROID_NDK_HOME)/platforms/android-3/arch-arm/usr/lib \
|
|
|
|
- -lsupc++
|
|
|
|
+ -lstdc++ -lsupc++
|
|
|
|
|
2015-12-22 13:12:24 +01:00
|
|
|
-OPTFLAGS=-O3 -s
|
|
|
|
+OPTFLAGS=-Os -s
|
2015-12-21 18:32:50 +01:00
|
|
|
|
2015-12-22 13:12:24 +01:00
|
|
|
ALLFLAGS=${OPTFLAGS} -pipe \
|
|
|
|
-DNDEBUG -D_REENTRANT -DENV_UNIX \
|
2015-12-21 18:32:50 +01:00
|
|
|
$(ANDROID_FLAGS) \
|
|
|
|
$(LOCAL_FLAGS)
|
|
|
|
|
|
|
|
-CXX=$(ANDROID_NDK_BIN)/arm-linux-androideabi-g++ -fexceptions -frtti
|
|
|
|
-CC=$(ANDROID_NDK_BIN)/arm-linux-androideabi-gcc
|
|
|
|
-CC_SHARED= -fpic
|
|
|
|
-LINK_SHARED=-fpic -shared
|
2015-12-22 13:12:24 +01:00
|
|
|
+CXX+= -fexceptions -frtti
|
2015-12-21 18:32:50 +01:00
|
|
|
+
|
|
|
|
+CC_SHARED=-fPIC
|
|
|
|
+LINK_SHARED=-fPIC -shared
|
|
|
|
|
|
|
|
LOCAL_LIBS=$(ANDROID_LINK)
|
|
|
|
-LOCAL_LIBS_DLL=$(LOCAL_LIBS) # -ldl
|
|
|
|
+LOCAL_LIBS_DLL=$(LOCAL_LIBS)
|
|
|
|
|
|
|
|
OBJ_CRC32=$(OBJ_CRC32_C)
|
|
|
|
OBJ_AES=
|
|
|
|
-
|