From: Ryan Dahl Date: Tue, 12 Jan 2010 09:09:50 +0000 (-0800) Subject: Make sure GNUTLS is first on uselib X-Git-Tag: v0.1.26~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4397b801acd14b83f1674640346618e39c6ca88;p=platform%2Fupstream%2Fnodejs.git Make sure GNUTLS is first on uselib 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. --- diff --git a/wscript b/wscript index 88ce61e..6b822dc 100644 --- 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'