From 15893b88b0e64f14a08e952a07d3e517c7926c8e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 4 Feb 2008 22:44:35 +0000 Subject: [PATCH] Treat an empty directory argument as the current directory. --- gold/options.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2