Skip to content

Commit 5097284

Browse files
committed
Link audioop and _ctypes_test module against libm.
1 parent 075b18d commit 5097284

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Python-3.3.3-cross-compile.patch

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,27 @@ diff -ru Python-3.3.3/Modules/socketmodule.c Python-3.3.3-android/Modules/socket
282282
/* Rely on the configure script */
283283
# else
284284
# undef HAVE_GETHOSTBYNAME_R
285+
diff -ru Python-3.3.3/setup.py Python-3.3.3-android/setup.py
286+
--- Python-3.3.3/setup.py 2014-07-31 19:47:32.982850271 +0000
287+
+++ Python-3.3.3-android/setup.py 2014-07-31 19:46:45.698850375 +0000
288+
@@ -639,7 +639,8 @@
289+
# Operations on audio samples
290+
# According to #993173, this one should actually work fine on
291+
# 64-bit platforms.
292+
- exts.append( Extension('audioop', ['audioop.c']) )
293+
+ exts.append( Extension('audioop', ['audioop.c'],
294+
+ libraries=['m']) )
295+
296+
# readline
297+
do_readline = self.compiler.find_library_file(lib_dirs, 'readline')
298+
@@ -1904,7 +1905,8 @@
299+
sources=sources,
300+
depends=depends)
301+
ext_test = Extension('_ctypes_test',
302+
- sources=['_ctypes/_ctypes_test.c'])
303+
+ sources=['_ctypes/_ctypes_test.c'],
304+
+ libraries=['m'])
305+
self.extensions.extend([ext, ext_test])
306+
307+
if not '--with-system-ffi' in sysconfig.get_config_var("CONFIG_ARGS"):
285308

0 commit comments

Comments
 (0)