aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-open3d-python
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-09-02 16:40:16 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-09-02 16:40:16 +0000
commit0ef2ba03c5b379d6b77f589fedd3a3ef8d2bb2df (patch)
treee0ff4cf2a1ad0c1fb3993aab15623bee87cea2d3 /graphics/py-open3d-python
parent907448d09218f49b0275a02d649cf7fa58185f64 (diff)
downloadports-0ef2ba03c5b379d6b77f589fedd3a3ef8d2bb2df.tar.gz
ports-0ef2ba03c5b379d6b77f589fedd3a3ef8d2bb2df.zip
Notes
Diffstat (limited to 'graphics/py-open3d-python')
-rw-r--r--graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake32
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake b/graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake
new file mode 100644
index 000000000000..c9e3397c3a34
--- /dev/null
+++ b/graphics/py-open3d-python/files/patch-External_pybind11_tools_pybind11Tools.cmake
@@ -0,0 +1,32 @@
+--- External/pybind11/tools/pybind11Tools.cmake.orig 2018-09-02 16:32:40 UTC
++++ External/pybind11/tools/pybind11Tools.cmake
+@@ -69,17 +69,19 @@ function(_pybind11_add_lto_flags target_
+ set(cxx_append ";-fno-fat-lto-objects")
+ endif()
+
+- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND prefer_thin_lto)
+- _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO_THIN
+- "-flto=thin${cxx_append}" "-flto=thin${linker_append}"
+- PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
+- endif()
++ # Disable -flto because it fails on 12: /usr/local/bin/ld: /usr/bin/../lib/LLVMgold.so: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so"
++ # It is only activated on 12, not 11, for some reason.
++ #if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND prefer_thin_lto)
++ # _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO_THIN
++ # "-flto=thin${cxx_append}" "-flto=thin${linker_append}"
++ # PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
++ #endif()
+
+- if (NOT HAS_FLTO_THIN)
+- _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO
+- "-flto${cxx_append}" "-flto${linker_append}"
+- PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
+- endif()
++ #if (NOT HAS_FLTO_THIN)
++ # _pybind11_return_if_cxx_and_linker_flags_work(HAS_FLTO
++ # "-flto${cxx_append}" "-flto${linker_append}"
++ # PYBIND11_LTO_CXX_FLAGS PYBIND11_LTO_LINKER_FLAGS)
++ #endif()
+ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Intel")
+ # Intel equivalent to LTO is called IPO
+ _pybind11_return_if_cxx_and_linker_flags_work(HAS_INTEL_IPO