[libcxx] Drop -D option from libtool when merging archives
authorPetr Hosek <phosek@google.com>
Tue, 3 Mar 2020 00:07:18 +0000 (16:07 -0800)
committerPetr Hosek <phosek@google.com>
Tue, 3 Mar 2020 00:07:18 +0000 (16:07 -0800)
This is a follow up to D74108. This option is not supported by older
versions of libtool so remove it. We keep the -s option to build the
index.

libcxx/utils/merge_archives.py

index d784ea0..cc96cb2 100755 (executable)
@@ -143,10 +143,10 @@ def main():
 
     if args.use_libtool:
         files = [f for f in files if not f.startswith('__.SYMDEF')]
-        execute_command_verbose([libtool_exe, '-static', '-o', args.output, '-sD'] + files,
+        execute_command_verbose([libtool_exe, '-static', '-o', args.output, '-s'] + files,
                                 cwd=temp_directory_root, verbose=args.verbose)
     else:
-        execute_command_verbose([ar_exe, 'rcsD', args.output] + files,
+        execute_command_verbose([ar_exe, 'rcs', args.output] + files,
                                 cwd=temp_directory_root, verbose=args.verbose)