lbry-android-sdk/p4a/pythonforandroidold/recipes/cdecimal/cross-compile.patch
2022-12-02 15:15:34 -05:00

12 lines
613 B
Diff

diff -Naur cdecimal/setup.py b/setup.py
--- cdecimal/setup.py 2015-12-14 13:48:23.085997956 -0600
+++ b/setup.py 2015-12-14 13:48:11.413805121 -0600
@@ -229,7 +229,7 @@
def configure(machine, cc, py_size_t):
os.chmod("./configure", 0x1ed) # pip removes execute permissions.
if machine: # string has been validated.
- os.system("./configure MACHINE=%s" % machine)
+ os.system("./configure --host=%s MACHINE=%s" % (os.environ['TOOLCHAIN_PREFIX'], machine))
elif 'sunos' in SYSTEM and py_size_t == 8:
# cc is from sysconfig.
os.system("./configure CC='%s -m64'" % cc)