summaryrefslogtreecommitdiff
path: root/src/wx/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-06-03 01:28:57 +0100
committerCarl Hetherington <cth@carlh.net>2019-06-03 01:28:57 +0100
commit5495f1b4a9898526da6786b8161bb398d5cfe5bd (patch)
treec3dd3ddb4419b137c5852e6181fbca3352840f1b /src/wx/wscript
parentb0bec103eaaebfbc0b6f90f9b3e7ac8c32f2707e (diff)
Try to enable vsync with GL on Linux.
Diffstat (limited to 'src/wx/wscript')
-rw-r--r--src/wx/wscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/wscript b/src/wx/wscript
index 8430b5844..89a02a3c6 100644
--- a/src/wx/wscript
+++ b/src/wx/wscript
@@ -180,6 +180,9 @@ def configure(conf):
uselib_store='WXWIDGETS',
mandatory=True)
+ if conf.env.TARGET_LINUX:
+ conf.env.append_value('CXXFLAGS', ['-DGLX_GLXEXT_PROTOTYPES'])
+
if conf.options.static_wxwidgets:
# wx-config returns its static libraries as full paths, without -l prefixes, which confuses
# check_cfg(). It puts the static libraries into LINKFLAGS_WXWIDGETS, so fish them out.