Skip to content

Commit 6ebcecf

Browse files
authored
Merge pull request #39 from falsifian/pkgconfig
Use pkgconfig to get flags needed for GL library.
2 parents 11e6e8d + 12277dd commit 6ebcecf

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)