more stuff to do
authorThomas Nagy <tnagy1024@gmail.com>
Tue, 18 Jan 2011 12:47:17 +0000 (12:47 +0000)
committerThomas Nagy <tnagy1024@gmail.com>
Tue, 18 Jan 2011 12:47:17 +0000 (12:47 +0000)
git-svn-id: https://waf.googlecode.com/svn/trunk@10884 f0382ac9-c320-0410-b3f0-b508d59f5a85

waflib/Tools/gcc.py

index 99631a16ba02d60eaa86245ff92b9f4744babd97..4bb488c29c39700f1fc1cfa420aa9787d68fef7e 100644 (file)
@@ -151,4 +151,22 @@ def configure(conf):
        conf.cc_add_flags()
        conf.link_add_flags()
 
+# TODO merge this
+"""
+@feature('cprogram', 'cshlib')
+@after('apply_link', 'apply_lib_vars', 'apply_obj_vars')
+def hpux_addfullpath(self):
+  if sys.platform == 'hp-ux11':
+    link = getattr(self, 'link_task', None)
+    if link:
+        lst = link.env.LINKFLAGS
+        buf = []
+        for x in lst:
+           if x.startswith('-L'):
+               p2 = x[2:]
+               if not os.path.isabs(p2):
+                   x = x[:2] + self.bld.srcnode.abspath(link.env) + "/../" + x[2:].lstrip('.')
+           buf.append(x)
+        link.env.LINKFLAGS = buf
+"""