summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch')
-rw-r--r--dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch b/dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch
new file mode 100644
index 000000000000..856aed8474ec
--- /dev/null
+++ b/dev-python/python-efl/files/python-efl-1.25-clang-crosscompile.patch
@@ -0,0 +1,14 @@
+diff -Naur a/setup.py b/setup.py
+--- a/setup.py 2020-06-25 19:46:38.312786000 +0300
++++ b/setup.py 2020-09-25 09:52:34.830587205 +0300
+@@ -221,6 +221,10 @@
+ # remove clang unknown flags
+ if os.getenv("CC") == "clang":
+ common_cflags.remove('-fno-var-tracking-assignments')
++if os.getenv("CC") == "x86_64-pc-linux-gnu-clang":
++ common_cflags.remove('-fno-var-tracking-assignments')
++if os.getenv("CC") == "i686-pc-linux-gnu-clang":
++ common_cflags.remove('-fno-var-tracking-assignments')
+
+
+ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):