Browse Source

makepanda: pick up AudioToolbox and CoreAudio frameworks on macOS

These seem to be needed to compile against OpenAL Soft.

Fixes #678
Fixes #679
rdb 6 years ago
parent
commit
cee000d1da
1 changed files with 4 additions and 0 deletions
  1. 4 0
      makepanda/makepanda.py

+ 4 - 0
makepanda/makepanda.py

@@ -967,6 +967,10 @@ if (COMPILER=="GCC"):
         else:
             PkgDisable("OPENCV")
 
+        if GetTarget() == "darwin" and not PkgSkip("OPENAL"):
+            LibName("OPENAL", "-framework AudioToolbox")
+            LibName("OPENAL", "-framework CoreAudio")
+
         if not PkgSkip("ASSIMP") and \
             os.path.isfile(GetThirdpartyDir() + "assimp/lib/libassimp.a"):
             # Also pick up IrrXML, which is needed when linking statically.