From 978590825d9807513a15e82503e888a48c6b5e8d Mon Sep 17 00:00:00 2001
From: BERTHAUT Florent <florent.berthaut@univ-lille1.fr>
Date: Fri, 8 May 2020 23:31:56 +0200
Subject: [PATCH] Added compile flags for osx

---
 SConstruct | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SConstruct b/SConstruct
index 13f4981..a1a5dfe 100644
--- a/SConstruct
+++ b/SConstruct
@@ -49,13 +49,13 @@ if env['platform'] == '':
 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'])
     if env['target'] in ('debug', 'd'):
         env.Append(CCFLAGS=['-g', '-O2', '-arch', 'x86_64'])
-        env.Append(CXXFLAGS=['-std=c++17'])
         env.Append(LINKFLAGS=['-arch', 'x86_64'])
     else:
         env.Append(CCFLAGS=['-g', '-O3', '-arch', 'x86_64'])
-        env.Append(CXXFLAGS=['-std=c++17'])
         env.Append(LINKFLAGS=['-arch', 'x86_64'])
 
 elif env['platform'] in ('x11', 'linux'):
-- 
GitLab