This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
g++_link_flags says:I think you should split the existing value by colons; otherwise, you could think you have a match when the desired LD_LIBRARY_PATH is a substring of something in the existing value. OK with that change, and appropriate testing.
global env;
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
...which has the effect of adding $ld_library_path to LD_LIBRARY_PATH every time g++_init is called. That happens quite often during check-g++, especially when testing more than one multilib. On IRIX, I found it was eventually growing so big that it hit the system limit.
The patch below fixes this and the copy in gfortran.exp. Tested on mips-sgi-irix6.5. OK to install?
-- Mark Mitchell CodeSourcery, LLC (916) 791-8304 mark@codesourcery.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |