diff options
author | Joonas Niilola <juippis@gentoo.org> | 2020-09-22 08:59:44 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-09-22 09:01:17 +0300 |
commit | d7c2885608dafa2e5190d51513c867988b6a8c97 (patch) | |
tree | 42ed6011f17f99fc1238644008196702b2d1b990 /dev-python/python-efl | |
parent | app-eselect/eselect-lua: fix depends (diff) | |
download | gentoo-d7c2885608dafa2e5190d51513c867988b6a8c97.tar.gz gentoo-d7c2885608dafa2e5190d51513c867988b6a8c97.tar.bz2 gentoo-d7c2885608dafa2e5190d51513c867988b6a8c97.zip |
dev-python/python-efl: fix crosscompile with clang
Closes: https://bugs.gentoo.org/743787
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/python-efl')
-rw-r--r-- | dev-python/python-efl/files/python-efl-1.24-clang.patch | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/dev-python/python-efl/files/python-efl-1.24-clang.patch b/dev-python/python-efl/files/python-efl-1.24-clang.patch index 7702c38d9f3e..a6f18d866300 100644 --- a/dev-python/python-efl/files/python-efl-1.24-clang.patch +++ b/dev-python/python-efl/files/python-efl-1.24-clang.patch @@ -1,21 +1,7 @@ -From 5a02f132107abc6a7d022eb349f7ff6338b71feb Mon Sep 17 00:00:00 2001 -From: Dave Andreoli <dave@gurumeditation.it> -Date: Thu, 25 Jun 2020 18:54:03 +0200 -Subject: Do not fail when build with CC="clang" - -clang seems much better in building elementary, while gcc need a lot -of ram and tend to fail badly - -So for now on clang is the suggested compiler to use ---- - setup.py | 16 ++++++++++------ - 1 file changed, 10 insertions(+), 6 deletions(-) - -diff --git a/setup.py b/setup.py -index 3ed0028..a863a19 100755 ---- a/setup.py -+++ b/setup.py -@@ -211,13 +211,17 @@ ext_modules = [] +diff -Naur a/setup.py b/setup.py +--- a/setup.py 2020-04-23 08:20:55.742402600 +0300 ++++ b/setup.py 2020-09-22 08:29:43.065243208 +0300 +@@ -211,13 +211,21 @@ py_modules = [] packages = ["efl"] common_cflags = [ @@ -35,10 +21,11 @@ index 3ed0028..a863a19 100755 +# 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): sys.stdout.write("Python-EFL: %s\n" % RELEASE) --- -cgit v1.2.1 - |