From: Debian Science Team Date: Sun, 11 Oct 2020 17:08:21 +0000 (+0100) Subject: pybind11_lto_mips64el X-Git-Tag: archive/raspbian/2019.2.0_git20200629.946dbd3-8+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9082810b415f7252620e6288b703a575a2265e24;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]