Commit b922546d by Richard Earnshaw Committed by Richard Earnshaw

g++.exp (g++_link_flags): Don't crash if LD_LIBRARY_PATH is not defined.

* lib/g++.exp (g++_link_flags): Don't crash if LD_LIBRARY_PATH is
not defined.

From-SVN: r78604
parent 68a1a5da
2004-02-28 Richard Earnshaw <rearnsha@arm.com>
* lib/g++.exp (g++_link_flags): Don't crash if LD_LIBRARY_PATH is
not defined.
2004-02-27 Eric Christopher <echristo@redhat.com>
* g++.dg/charset/charset.exp: Change CFLAGS to CHARSETCFLAGS.
......
......@@ -177,7 +177,8 @@ proc g++_link_flags { paths } {
# Doing this does cause trouble when testing cross-compilers.
if {![is_remote target]} {
global env;
if { $env(LD_LIBRARY_PATH) != "" } {
if { [info exists env(LD_LIBRARY_PATH)]
&& $env(LD_LIBRARY_PATH) != "" } {
append ld_library_path ":$env(LD_LIBRARY_PATH)";
}
setenv LD_LIBRARY_PATH $ld_library_path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment