From 84ec899103e9ca1617655aa7f0788c020b1dc0b0 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Wed, 4 Nov 2020 23:05:55 +0000 Subject: [PATCH] pybind11_lto_mips64el =================================================================== Gbp-Pq: Name pybind11_lto_mips64el.patch --- python/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/setup.py b/python/setup.py index 141ec05..a279abb 100644 --- a/python/setup.py +++ b/python/setup.py @@ -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] -- 2.30.2