From a5f28c513a3c5968ba435d5c6a786ddf01fd2415 Mon Sep 17 00:00:00 2001
From: BERTHAUT Florent <florent.berthaut@univ-lille1.fr>
Date: Sat, 9 May 2020 09:53:36 +0200
Subject: [PATCH] Fixed compile flags for osx

---
 SConstruct | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/SConstruct b/SConstruct
index a1a5dfe..d00258f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -50,13 +50,13 @@ if env['platform'] == "osx":
     env['target_path'] += 'osx/'
     cpp_library += '.osx'
     env.Append(CPPDEFINES=['__MACOSX_CORE__'])
-    env.Append(CXXFLAGS=['-std=c++17', '-framework CoreAudio', '-framework CoreFoundation'])
+    env.Append(CXXFLAGS=['-std=c++17'])
+    env.Append(LINKFLAGS=['-arch', 'x86_64','-framework', 
+                          'CoreAudio', '-framework', 'CoreFoundation'])
     if env['target'] in ('debug', 'd'):
         env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
-        env.Append(LINKFLAGS=['-arch', 'x86_64'])
     else:
         env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
-        env.Append(LINKFLAGS=['-arch', 'x86_64'])
 
 elif env['platform'] in ('x11', 'linux'):
     env['target_path'] += 'x11/'
-- 
GitLab