Skip to content

Commit 12277dd

Browse files
committed
Use pkgconfig to get flags needed for GL library.
This gets it to build on OpenBSD. Before this change, the GL library isn't found: Configuring library for OpenGLRaw-3.3.4.0.. cabal: Missing dependency on a foreign library: * Missing (or bad) C library: GL
1 parent 11e6e8d commit 12277dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

OpenGLRaw.cabal

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,12 @@ library
709709
CPP
710710
PatternSynonyms
711711
ScopedTypeVariables
712+
if os(openbsd)
713+
-- OpenBSD keeps OpenGL libs under /usr/X11R6. Without the following line,
714+
-- we get an error like this:
715+
-- cabal: Missing dependency on a foreign library:
716+
-- * Missing (or bad) C library: GL
717+
pkgconfig-depends: gl
712718
if os(windows) && flag(UseNativeWindowsLibraries)
713719
if arch(i386)
714720
cpp-options: "-DCALLCONV=stdcall"

0 commit comments

Comments
 (0)