glew package: add ld flags when compiling with ^apple-gl (#43429)

This commit is contained in:
Juan Miguel Carceller 2024-04-25 20:18:00 +02:00 committed by GitHub
parent 4a40a76291
commit a8506f9022
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,3 +72,8 @@ def cmake_args(self):
args.append(self.define("OPENGL_egl_LIBRARY", "IGNORE")) args.append(self.define("OPENGL_egl_LIBRARY", "IGNORE"))
return args return args
def flag_handler(self, name, flags):
if name == "ldflags" and self.spec.satisfies("platform=darwin ^apple-gl"):
flags.append("-framework OpenGL")
return (flags, None, None)