ftgl: drop an impure -dylib_file on darwin

The build may outright fail because of this on recent macOS:

ftgl> clang-11: error: no such file or directory: '/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
This commit is contained in:
Dmitry Kalinkin 2022-09-16 19:22:18 -04:00
parent 2912f1cced
commit 795fbbf5cc
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -23,6 +23,14 @@ stdenv.mkDerivation rec {
hash = "sha256-6TDNGoMeBLnucmHRgEDIVWcjlJb7N0sTluqBwRMMWn4=";
};
# GL_DYLIB is hardcoded to an impure path
# /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
# and breaks build on recent macOS versions
postPatch = ''
substituteInPlace m4/gl.m4 \
--replace ' -dylib_file $GL_DYLIB: $GL_DYLIB' ""
'';
nativeBuildInputs = [
autoreconfHook
doxygen