From 778544b36e2366e951c8bba0abda1c99b0fab7fb Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Thu, 14 Dec 2023 18:38:52 -0600 Subject: [PATCH] Link with Accelerate framework on macOS Fixes "Undefined symbols for architecture x86_64: '_vDSP_dotpr_s1_15'" --- OSBindings/SDL/SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OSBindings/SDL/SConstruct b/OSBindings/SDL/SConstruct index 0a8eb2537..4a7d227f8 100644 --- a/OSBindings/SDL/SConstruct +++ b/OSBindings/SDL/SConstruct @@ -142,5 +142,8 @@ env.Append(CCFLAGS = ['--std=c++17', '--std=c++1z', '-Wall', '-O2', '-DNDEBUG']) # Add additional libraries to link against. env.Append(LIBS = ['libz', 'pthread', 'GL']) +if env['PLATFORM'] == 'darwin': + env.Append(FRAMEWORKS = ['Accelerate']) + # Build target. env.Program(target = 'clksignal', source = SOURCES)