From 7c40be8b46315d184572f9defbe8b27dc59840a6 Mon Sep 17 00:00:00 2001 From: Sasha Rahlin Date: Wed, 20 Nov 2024 11:12:35 -0600 Subject: [PATCH] Fix linking problem on OSX --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index acaec676..85d1b168 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,9 @@ else() target_link_options(spt3g INTERFACE "LINKER:-undefined,dynamic_lookup") endif() endif() +if(APPLE) + target_link_options(spt3g INTERFACE "LINKER:-no_fixup_chains") +endif() # Work around yet more bugs in GCC 4.4, this time with C++ 11 support # Also increase maximum number of arguments in python bindings