pybind11_lto_mips64el
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 11 Oct 2020 17:08:21 +0000 (18:08 +0100)
committerDrew Parsons <dparsons@debian.org>
Sun, 11 Oct 2020 17:08:21 +0000 (18:08 +0100)
===================================================================

Gbp-Pq: Name pybind11_lto_mips64el.patch

python/setup.py

index 141ec0571a26c08ff3d1f7addb4f6c1ee6397a1c..a279abb64b27386a46ab641ba0dc0beb18ea5296 100644 (file)
@@ -51,6 +51,9 @@ class CMakeBuild(build_ext):
         cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
                       '-DPYTHON_EXECUTABLE=' + sys.executable]
 
+        if platform.machine() == 'mips64':
+            cmake_args += ['-DPYBIND11_LTO_CXX_FLAGS=-fno-lto', '-DPYBIND11_LTO_LINKER_FLAGS=-fno-lto']
+
         cfg = 'Debug' if self.debug else 'Release'
         build_args = ['--config', cfg]