X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d28516c7c41c8c1ab54b89acfc5fb77e40f36905..a111f2b216a90bacb254644d3cae526eddc9f9f1:/wxPython/setup.py diff --git a/wxPython/setup.py b/wxPython/setup.py index a50801ba1f..1212a3f807 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -415,10 +415,8 @@ if BUILD_GLCANVAS or GL_ONLY: gl_libs = [] if os.name == 'posix': - if '-D__WXDEBUG__' in cflags: - gl_libs = ['wx_gtkd_gl', 'GL', 'GLU'] - else: - gl_libs = ['wx_gtk_gl', 'GL', 'GLU'] + gl_libs = os.popen(WX_CONFIG + ' --gl-libs', 'r').read()[:-1] + gl_libs = string.split(gl_libs) else: other_sources = [opj(location, 'msw/myglcanvas.cpp')] gl_libs = ['opengl32', 'glu32'] @@ -431,10 +429,10 @@ if BUILD_GLCANVAS or GL_ONLY: define_macros = defines, library_dirs = libdirs, - libraries = libs + gl_libs, + libraries = libs, extra_compile_args = cflags, - extra_link_args = lflags, + extra_link_args = gl_libs + lflags, ) wxpExtensions.append(ext)