]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Support filenames which contain "~".
[blhc/blhc.git] / bin / blhc
index 67dce4ae358fcf5cd00ddd224fe4463101920b23..03e8ebfb8b90da4f1472619c05ef7c756aa304be 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -338,8 +338,8 @@ for (my $i = 0; $i < scalar @input; $i++) {
     # Linker commands.
     if ($line =~ m{\s-o                        # -o
                    [\s\\]*\s+                  # possible line continuation
-                   (?:[A-Za-z0-9_/.-]+/)?      # path to file
-                   [A-Za-z0-9_-]+              # binary name (no dots!)
+                   (?:[/.A-Za-z0-9~_-]+/)?     # path to file
+                        [A-Za-z0-9~_-]+        # binary name (no dots!)
                    (?:[0-9.]*\.so[0-9.]*[a-z]? # library (including version)
                     |\.la)?
                    (?:\s|\\|\$)                # end of file name