From: Ian Lance Taylor Date: Mon, 4 Feb 2008 22:44:35 +0000 (+0000) Subject: Treat an empty directory argument as the current directory. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15893b88b0e64f14a08e952a07d3e517c7926c8e;p=binutils-gdb.git Treat an empty directory argument as the current directory. --- diff --git a/gold/options.h b/gold/options.h index 47623dc8701..aa51126d826 100644 --- a/gold/options.h +++ b/gold/options.h @@ -73,7 +73,10 @@ class Search_directory // This is the usual constructor. Search_directory(const char* name, bool put_in_sysroot) : name_(name), put_in_sysroot_(put_in_sysroot), is_in_sysroot_(false) - { gold_assert(!this->name_.empty()); } + { + if (this->name_.empty()) + this->name_ = "."; + } // This is called if we have a sysroot. The sysroot is prefixed to // any entries for which put_in_sysroot_ is true. is_in_sysroot_ is