summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com>2024-04-25 20:18:00 +0200
committerGitHub <noreply@github.com>2024-04-25 11:18:00 -0700
commita8506f9022464ac15d0db6a22b52eba79a73cfd8 (patch)
treeb6b30ec03ce70b2750922712536042487229b009
parent4a40a76291f05fdd76e12497b1891c5ad1705ebe (diff)
downloadspack-a8506f9022464ac15d0db6a22b52eba79a73cfd8.tar.gz
spack-a8506f9022464ac15d0db6a22b52eba79a73cfd8.tar.bz2
spack-a8506f9022464ac15d0db6a22b52eba79a73cfd8.tar.xz
spack-a8506f9022464ac15d0db6a22b52eba79a73cfd8.zip
glew package: add ld flags when compiling with ^apple-gl (#43429)
-rw-r--r--var/spack/repos/builtin/packages/glew/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/glew/package.py b/var/spack/repos/builtin/packages/glew/package.py
index 7004b9b298..6e2e41779f 100644
--- a/var/spack/repos/builtin/packages/glew/package.py
+++ b/var/spack/repos/builtin/packages/glew/package.py
@@ -72,3 +72,8 @@ class Glew(CMakePackage):
args.append(self.define("OPENGL_egl_LIBRARY", "IGNORE"))
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)