1 diff --git a/vispy/ext/fontconfig.py b/vispy/ext/fontconfig.py
2 index ff24662b..6a5079f0 100644
3 --- a/vispy/ext/fontconfig.py
4 +++ b/vispy/ext/fontconfig.py
5 @@ -7,10 +7,7 @@ from ..util.wrappers import run_subprocess
7 # Some code adapted from Pyglet
9 -fc = util.find_library('fontconfig')
11 - raise ImportError('fontconfig not found')
12 -fontconfig = cdll.LoadLibrary(fc)
13 +fontconfig = cdll.LoadLibrary('@fontconfig@')
15 FC_FAMILY = 'family'.encode('ASCII')
16 FC_SIZE = 'size'.encode('ASCII')
17 diff --git a/vispy/gloo/gl/gl2.py b/vispy/gloo/gl/gl2.py
18 index d5bd9c38..63350e73 100644
19 --- a/vispy/gloo/gl/gl2.py
20 +++ b/vispy/gloo/gl/gl2.py
21 @@ -39,16 +39,8 @@ elif sys.platform.startswith('win'):
25 - if sys.platform.startswith('darwin'):
26 - _fname = ctypes.util.find_library('OpenGL')
28 - _fname = ctypes.util.find_library('GL')
30 - logger.warning('Could not load OpenGL library.')
34 - _lib = ctypes.cdll.LoadLibrary(_fname)
36 + _lib = ctypes.cdll.LoadLibrary("@gl@")