Debian Codegraph @

debian/patches/0005-remove-march-and-mcpu-to-avoid-FTBFS.patch

raw
1 From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <[email protected]>
2 Date: Fri, 22 Dec 2023 17:54:38 +0100
3 Subject: remove -march and -mcpu to avoid FTBFS
4
5 ---
6 setup.py | 4 ++--
7 1 file changed, 2 insertions(+), 2 deletions(-)
8
9 diff --git a/setup.py b/setup.py
10 index e9b8e25..e5866f9 100644
11 --- a/setup.py
12 +++ b/setup.py
13 @@ -361,9 +361,9 @@ class build_ext(build_ext_):
14 openmpflag = "-fopenmp"
15 archi = platform.machine()
16 if archi in ("i386", "x86_64"):
17 - compileflags = COMPILE_FLAGS + ["-march=%s" % self.march]
18 + compileflags = COMPILE_FLAGS
19 else:
20 - compileflags = COMPILE_FLAGS + ["-mcpu=%s" % self.march]
21 + compileflags = COMPILE_FLAGS
22 if archi == "ppc64le":
23 compileflags = COMPILE_FLAGS + ["-DNO_WARN_X86_INTRINSICS"]
24