def add_plain_lib_names (logger, file): base = (os.path.basename (file) .replace ('-mt.a', '.a') .replace ('-s.a', '.a') .replace ('-mt.so', '.so') .replace ('-s.so', '.so')) misc.symlink_in_dir (file, base)