summaryrefslogtreecommitdiff
path: root/media-gfx/mypaint/files/mypaint-2.0.1-build-system.patch
blob: c7806e7119dc41aed68b3dad566a2ff72ed3b310 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/setup.py b/setup.py
index 670df4d..703f9d2 100644
--- a/setup.py
+++ b/setup.py
@@ -471,9 +471,6 @@ class BuildExt (build_ext):
             linkflags.extend([
                 "-O0",
             ])
-        else:
-            linkflags.append("-O3")
-            ccflags.append("-O3")
 
         return build_ext.build_extension(self, ext)
 
@@ -869,7 +866,6 @@ def get_ext_modules():
         '-Wno-write-strings',
         '-D_POSIX_C_SOURCE=200809L',
         "-DNO_TESTS",  # FIXME: we're building against shared libmypaint now
-        '-g',  # always include symbols, for profiling
     ]
     extra_link_args = []
 
diff --git a/setup.py b/setup.py
index 703f9d2..cc8abbd 100644
--- a/setup.py
+++ b/setup.py
@@ -456,10 +456,6 @@ class BuildExt (build_ext):
         ccflags = ext.extra_compile_args
         linkflags = ext.extra_link_args
 
-        if sys.platform != "darwin" and not self.disable_openmp:
-            linkflags.append(OPENMP_CFLAG)
-            ccflags.append(OPENMP_LDFLAG)
-
         if self.debug:
             skip = ["-DNDEBUG"]
             ccflags[:] = [f for f in ccflags if f not in skip]