$OpenBSD: patch-tools_gyp_pylib_gyp_generator_ninja_py,v 1.18 2015/05/24 15:51:53 robert Exp $
--- tools/gyp/pylib/gyp/generator/ninja.py.orig.port	Thu May 14 00:36:24 2015
+++ tools/gyp/pylib/gyp/generator/ninja.py	Wed May 20 08:34:57 2015
@@ -2037,7 +2037,7 @@ def GenerateOutputForConfig(target_list, target_dicts,
     master_ninja.rule(
       'alink_thin',
       description='AR $out',
-      command='rm -f $out && $ar rcsT $arflags $out $in')
+      command='rm -f $out && $ar rcs $arflags $out $in')
 
     # This allows targets that only need to depend on $lib's API to declare an
     # order-only dependency on $lib.TOC and avoid relinking such downstream
@@ -2054,7 +2054,7 @@ def GenerateOutputForConfig(target_list, target_dicts,
               '$ld -shared $ldflags -o $lib -Wl,-soname=$soname %(suffix)s',
             'extract_toc':
               ('{ $readelf -d $lib | grep SONAME ; '
-               '$nm -gD -f p $lib | cut -f1-2 -d\' \'; }')})
+               'llvm-nm -extern-only -dynamic -format=posix $lib | cut -f1-2 -d\' \'; }')})
 
     master_ninja.rule(
       'solink',
