summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-03 16:51:15 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-06 21:31:09 +0100
commit1a01ead2985d52ff57303574afc8bdd27c7a36af (patch)
tree54c2cf1922a7af79a9a8da672b4ac027a8f476b4
parent858bf36ccfaf0cc4565b4056e8a8c0a5f4a4cf74 (diff)
Try to fix libglu link.
-rw-r--r--src/wx/wscript5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/wscript b/src/wx/wscript
index 7b3882c39..1e83bb576 100644
--- a/src/wx/wscript
+++ b/src/wx/wscript
@@ -178,8 +178,6 @@ def configure(conf):
uselib_store='WXWIDGETS',
mandatory=True)
- conf.env.LIB_WXWIDGETS.append('GLU')
-
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.
@@ -247,6 +245,7 @@ def configure(conf):
define_name='DCPOMATIC_USE_RTERROR',
mandatory=False)
+ conf.check_cfg(package='glu', args='--cflags --libs', uselib_store='GLU', mandatory=True)
def build(bld):
@@ -257,7 +256,7 @@ def build(bld):
obj.name = 'libdcpomatic2-wx'
obj.export_includes = ['..']
- obj.uselib = 'BOOST_FILESYSTEM BOOST_THREAD BOOST_REGEX WXWIDGETS DCP SUB ZIP CXML RTAUDIO '
+ obj.uselib = 'BOOST_FILESYSTEM BOOST_THREAD BOOST_REGEX WXWIDGETS DCP SUB ZIP CXML RTAUDIO GLU '
if bld.env.TARGET_LINUX:
obj.uselib += 'GTK '
if bld.env.TARGET_WINDOWS: