From: Debian Science Team Date: Wed, 4 Nov 2020 23:05:55 +0000 (+0000) Subject: pybind11_lto_mips64el X-Git-Tag: archive/raspbian/2019.2.0_git20200629.946dbd3-8+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=84ec899103e9ca1617655aa7f0788c020b1dc0b0;p=dolfin.git pybind11_lto_mips64el =================================================================== Gbp-Pq: Name pybind11_lto_mips64el.patch --- 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]