Make sure GNUTLS is first on uselib
authorRyan Dahl <ry@tinyclouds.org>
Tue, 12 Jan 2010 09:09:50 +0000 (01:09 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 12 Jan 2010 09:09:58 +0000 (01:09 -0800)
Why? Because I have two versions of GnuTLS installed - one is old 2.0.X in
/usr and one is new 2.5.X in ~/local/gnutls. waf correctly finds that the
newer version, but because GNUTLS was behind other libraries in the
node.uselib -L/usr/lib was before -L/home/ryan/local/gnutls/lib in the
actual gcc command - hence getting link errors. WAF SUCKS, really.
I wish someone would invent a good build system that could avoid such
problems.

wscript

diff --git a/wscript b/wscript
index 88ce61e..6b822dc 100644 (file)
--- a/wscript
+++ b/wscript
@@ -351,7 +351,7 @@ def build(bld):
   """
   node.add_objects = 'ev eio evcom http_parser coupling'
   node.uselib_local = ''
-  node.uselib = 'UDNS V8 EXECINFO DL KVM GPGERROR GNUTLS'
+  node.uselib = 'GNUTLS GPGERROR UDNS V8 EXECINFO DL KVM'
 
   node.install_path = '${PREFIX}/lib'
   node.install_path = '${PREFIX}/bin'