frankheckenbach / ftgl

fork from http://sourceforge.net/projects/ftgl
Other
24 stars 13 forks source link

Use correct syntax for the -dylib_file flag #14

Closed ryandesign closed 3 years ago

ryandesign commented 3 years ago

Use correct syntax for the -dylib_file flag (no space after colon). Fixes configure failure on macOS Big Sur and later:

configure: error: GL library could not be found, please specify its location with --with-gl-lib.

config.log contains:

configure:17551: /usr/bin/clang -o conftest -pipe -Os -DGL_SILENCE_DEPRECATION -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64  -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 conftest.c -Xlinker -framework -Xlinker OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib: /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib >&5
clang: error: no such file or directory: '/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'

Because of the erroneous space after the colon, this configure test was actually trying to operate on the file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib. This must have silently worked before because that file did exist, but as of macOS Big Sur, that and all other system dylibs no longer exist in the filesystem. (They only exist in what Apple calls the dylib cache.)