fix
diff --git a/toolchain_build/toolchain_build_pnacl.py b/toolchain_build/toolchain_build_pnacl.py
index 34b252f..4b14ee2 100755
--- a/toolchain_build/toolchain_build_pnacl.py
+++ b/toolchain_build/toolchain_build_pnacl.py
@@ -601,11 +601,11 @@
           CreateSymLinksToDirectToNaClTools(host)
       },
   }
-  cleanup_libs = []
+  cleanup_static_libs = []
   shared = []
   if host != 'le32-nacl':
     shared = ['--enable-shared']
-    cleanup_libs = [
+    cleanup_static_libs = [
         command.Remove(*[os.path.join('%(output)s', 'lib', f) for f
                          in '*.a', '*Hello.*', 'BugpointPasses.*']),
     ]
@@ -641,7 +641,7 @@
                   'SUBZERO_SRC_ROOT=%(abs_subzero_src)s',
                   'all']),
               command.Command(MAKE_DESTDIR_CMD + ['install'])] +
-              cleanup_libs + [
+              cleanup_static_libs + [
               command.Remove(*[os.path.join('%(output)s', 'bin', f) for f in
                                Exe('clang-format'), Exe('clang-check'),
                                Exe('c-index-test'), Exe('clang-tblgen'),