mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Link with OpenGL framework on macOS
Fixes "ld: library not found for -lGL"
This commit is contained in:
parent
bb030fc141
commit
d31ecd8986
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user