From 765d2ce8c515fc3683caa26082aed4a14777887d Mon Sep 17 00:00:00 2001 From: Bob Apthorpe Date: Fri, 10 Jul 2020 19:05:42 +0000 Subject: [PATCH] Initial workaround for clang/lld/osx (cherry picked from commit 992e6c2693c16c2a056efe849c612d0e1ee6d85e) (cherry picked from commit 1b628544f02f65cc1e54fb9522f0f6ee2542cbc7) --- lib/common/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/common/CMakeLists.txt b/lib/common/CMakeLists.txt index 14b67ca2a..0dd335f76 100644 --- a/lib/common/CMakeLists.txt +++ b/lib/common/CMakeLists.txt @@ -137,6 +137,11 @@ add_library(common STATIC ${BISON_HTMLparse_OUTPUTS} ) +# From https://gitlab.com/graphviz/graphviz/-/issues/1613 @mdwies 20093010 +if(APPLE) + target_compile_options(common PRIVATE "-fno-common") +endif(APPLE) + # Specify headers to be installed install( FILES -- 2.40.0