diff --git a/wxPython/setup.py b/wxPython/setup.py index d672a44196..cdaa055bfc 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -480,8 +480,9 @@ if BUILD_GLCANVAS: gl_libs = [] if os.name == 'posix': gl_config = os.popen(WX_CONFIG + ' --libs gl', 'r').read()[:-1] - gl_lflags = gl_config.split() + lflags + gl_lflags = gl_config.split() gl_libs = libs + else: gl_libs = libs + ['opengl32', 'glu32'] + makeLibName('gl') gl_lflags = lflags