-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2615 from mzakharo/scipy
use LEGACY_NDK option to build lapack/scipy with a separate NDK
- Loading branch information
Showing
5 changed files
with
85 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pythonforandroid/recipes/numpy/patches/fix-missing-threads.h.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From: Mikhail Zakharov <mzakharo@gmail.com> | ||
Date: Sun, 5 Jun 2022 11:14:23 -0400 | ||
Subject: [PATCH] fix missing threads.h | ||
|
||
--- | ||
numpy/f2py/cfuncs.py | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
|
||
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py | ||
index bdd27ad..39cb470 100644 | ||
--- a/numpy/f2py/cfuncs.py | ||
+++ b/numpy/f2py/cfuncs.py | ||
@@ -586,8 +586,7 @@ cppmacros["F2PY_THREAD_LOCAL_DECL"] = """\ | ||
so `!defined(__STDC_NO_THREADS__)` may give false positive for the existence | ||
of `threads.h` when using an older release of glibc 2.12 | ||
See gh-19437 for details on OpenBSD */ | ||
-#include <threads.h> | ||
-#define F2PY_THREAD_LOCAL_DECL thread_local | ||
+#define F2PY_THREAD_LOCAL_DECL __thread | ||
#elif defined(__GNUC__) \\ | ||
&& (__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 4))) | ||
#define F2PY_THREAD_LOCAL_DECL __thread | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters