1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-27 18:55:48 +00:00

Link with OpenGL framework on macOS

Fixes "ld: library not found for -lGL"
This commit is contained in:
Ryan Carsten Schmidt 2023-12-14 18:58:15 -06:00
parent bb030fc141
commit d31ecd8986

View File

@ -140,11 +140,14 @@ SOURCES += glob.glob('../../Storage/Tape/Parsers/*.cpp')
env.Append(CCFLAGS = ['--std=c++17', '--std=c++1z', '-Wall', '-O2', '-DNDEBUG'])
# Add additional libraries to link against.
env.Append(LIBS = ['libz', 'pthread', 'GL'])
env.Append(LIBS = ['libz', 'pthread'])
# Add additional platform-specific compiler flags, libraries, and frameworks.
if env['PLATFORM'] == 'darwin':
env.Append(CCFLAGS = ['-DGL_SILENCE_DEPRECATION'])
env.Append(FRAMEWORKS = ['Accelerate'])
env.Append(FRAMEWORKS = ['Accelerate', 'OpenGL'])
else:
env.Append(LIBS = ['GL'])
# Build target.
env.Program(target = 'clksignal', source = SOURCES)