Browse Source

p7zip: Fix build on non-arm arches

android-5
Fredrik Fornwall 9 years ago
parent
commit
e74041f9c1
  1. 25
      packages/p7zip/makefile.patch

25
packages/p7zip/makefile.patch

@ -1,7 +1,7 @@
diff -u -r orig/makefile.android_arm p7zip_15.09/makefile.android_arm diff -u -r ../p7zip_15.09/makefile.android_arm ./makefile.android_arm
--- orig/makefile.android_arm 2015-09-13 15:15:17.000000000 -0300 --- ../p7zip_15.09/makefile.android_arm 2015-09-13 14:15:17.000000000 -0400
+++ p7zip_15.09/makefile.android_arm 2015-12-21 13:50:55.895794056 -0300 +++ ./makefile.android_arm 2015-12-22 06:33:41.608388305 -0500
@@ -1,12 +1,7 @@ @@ -1,58 +1,38 @@
# #
-# makefile for ANDROID (generic ARM) -# makefile for ANDROID (generic ARM)
+# makefile for Android with Termux +# makefile for Android with Termux
@ -15,8 +15,10 @@ diff -u -r orig/makefile.android_arm p7zip_15.09/makefile.android_arm
ANDROID_FLAGS=\ ANDROID_FLAGS=\
-ffunction-sections \ -ffunction-sections \
-funwind-tables \ -funwind-tables \
@@ -16,27 +11,18 @@ - -D__ARM_ARCH_5__ \
-D__ARM_ARCH_5TE__ \ - -D__ARM_ARCH_5T__ \
- -D__ARM_ARCH_5E__ \
- -D__ARM_ARCH_5TE__ \
-DANDROID \ -DANDROID \
-DANDROID_NDK \ -DANDROID_NDK \
+ -D_UNICODE \ + -D_UNICODE \
@ -25,7 +27,7 @@ diff -u -r orig/makefile.android_arm p7zip_15.09/makefile.android_arm
- -march=armv5te \ - -march=armv5te \
- -mtune=xscale \ - -mtune=xscale \
- -msoft-float \ - -msoft-float \
-mthumb \ - -mthumb \
-fomit-frame-pointer \ -fomit-frame-pointer \
-fno-strict-aliasing -finline-limit=64 \ -fno-strict-aliasing -finline-limit=64 \
- -I$(ANDROID_NDK_HOME)/sources/cxx-stl/system/include \ - -I$(ANDROID_NDK_HOME)/sources/cxx-stl/system/include \
@ -45,9 +47,11 @@ diff -u -r orig/makefile.android_arm p7zip_15.09/makefile.android_arm
- -lsupc++ - -lsupc++
+ -lstdc++ -lsupc++ + -lstdc++ -lsupc++
OPTFLAGS=-O3 -s -OPTFLAGS=-O3 -s
+OPTFLAGS=-Os -s
@@ -45,14 +31,14 @@ ALLFLAGS=${OPTFLAGS} -pipe \
-DNDEBUG -D_REENTRANT -DENV_UNIX \
$(ANDROID_FLAGS) \ $(ANDROID_FLAGS) \
$(LOCAL_FLAGS) $(LOCAL_FLAGS)
@ -55,8 +59,7 @@ diff -u -r orig/makefile.android_arm p7zip_15.09/makefile.android_arm
-CC=$(ANDROID_NDK_BIN)/arm-linux-androideabi-gcc -CC=$(ANDROID_NDK_BIN)/arm-linux-androideabi-gcc
-CC_SHARED= -fpic -CC_SHARED= -fpic
-LINK_SHARED=-fpic -shared -LINK_SHARED=-fpic -shared
+CXX=arm-linux-androideabi-g++ -fexceptions -frtti +CXX+= -fexceptions -frtti
+CC=arm-linux-androideabi-gcc
+ +
+CC_SHARED=-fPIC +CC_SHARED=-fPIC
+LINK_SHARED=-fPIC -shared +LINK_SHARED=-fPIC -shared

Loading…
Cancel
Save