Fix bug introduced by changeset 9137:822abb428976 Allow using CXX='distcc g++' with ./waf configure.
authorVedran Mileti? <rivanvx@gmail.com>
Fri, 16 Nov 2012 22:23:40 +0100
changeset 9143 1573a6ddf0fe
parent 9142 10b6131edc81
child 9144 6a15c50388bc
Fix bug introduced by changeset 9137:822abb428976 Allow using CXX='distcc g++' with ./waf configure.
wscript
--- a/wscript	Tue Nov 13 16:49:05 2012 -0800
+++ b/wscript	Fri Nov 16 22:23:40 2012 +0100
@@ -342,7 +342,7 @@
             env.append_value("LINKFLAGS", "-Wl,--enable-auto-import")
 
         cxx = env['CXX']
-        cxx_check_libstdcxx = cxx + ['stdout=subprocess.PIPE']
+        cxx_check_libstdcxx = cxx + ['-print-file-name=libstdc++.so']
         p = subprocess.Popen(cxx_check_libstdcxx, stdout=subprocess.PIPE)
         libstdcxx_location = os.path.dirname(p.stdout.read().strip())
         p.wait()