From 62d73a31dd534dd3b66e3d9caf56bf7f901993ea Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 24 Mar 2017 00:15:32 +0100 Subject: [PATCH] python: Restore CCSHARED="-fPIC" for Android Fixes "unsupported dynamic reloc R_ARM_REL32; recompile with -fPIC" on arm. --- packages/python/configure.patch | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/python/configure.patch b/packages/python/configure.patch index 8ae0eb18b..88ce4e8ae 100644 --- a/packages/python/configure.patch +++ b/packages/python/configure.patch @@ -1,7 +1,16 @@ -diff -u -r ../Python-3.5.0/configure ./configure ---- ../Python-3.5.0/configure 2015-09-13 07:41:26.000000000 -0400 -+++ ./configure 2015-10-19 19:09:59.295440276 -0400 -@@ -10946,8 +10946,6 @@ +diff -u -r ../Python-3.6.1/configure ./configure +--- ../Python-3.6.1/configure 2017-03-21 07:32:38.000000000 +0100 ++++ ./configure 2017-03-23 23:42:47.210898734 +0100 +@@ -9295,7 +9295,7 @@ + then CCSHARED="-fPIC"; + else CCSHARED="+z"; + fi;; +- Linux-android*) ;; ++ Linux-android*) CCSHARED="-fPIC";; + Linux*|GNU*) CCSHARED="-fPIC";; + BSD/OS*/4*) CCSHARED="-fpic";; + FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; +@@ -11293,8 +11293,6 @@ _ACEOF if ac_fn_c_try_compile "$LINENO"; then :