diff --git a/mozilla/build/autoconf/make-makefile b/mozilla/build/autoconf/make-makefile index 00c26fe73ed..069958a7239 100755 --- a/mozilla/build/autoconf/make-makefile +++ b/mozilla/build/autoconf/make-makefile @@ -43,7 +43,8 @@ chomp $object_root; # called from "mozilla/gfx/src", then $source_subdir would be # "gfx/src/". $source_subdir = "$object_fullpath/"; -$source_subdir =~ s|^$object_root/||; +my $quoted_object_root = quotemeta($object_root); +$source_subdir =~ s|^$quoted_object_root/||; # Prefix makefiles with $source_subdir so that paths # will be relative to the top of the object tree.