+2001-06-04 Jeffrey Oldham <oldham@codesourcery.com>
+
+ * lib/g++.exp (g++_include_flags): Change `args' to gccpath's value.
+ (g++_link_flags): Likewise.
+ (g++_init): Pass gccpath's value to two previous functions.
+
2001-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.misc-tests/linkage.exp: Use wildcards when matching N32.
# provide new versions of g++_include_flags and g++_link_flags (both
# originally from libgloss.exp) which know about the new gcc tree structure
#
-proc g++_include_flags { args } {
+proc g++_include_flags { paths } {
global srcdir
global HAVE_LIBSTDCXX_V3
global TESTING_IN_BUILD_TREE
append flags "-I${dir} -I${dir}/src "
}
- set gccpath [get_multilibs ${args}]
+ set gccpath ${paths}
if { ${HAVE_LIBSTDCXX_V3} } {
set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
return "$flags"
}
-proc g++_link_flags { args } {
+proc g++_link_flags { paths } {
global rootme
global srcdir
global ld_library_path
- set gccpath [get_multilibs ${args}];
+ set gccpath ${paths}
set libio_dir ""
set flags ""
set ld_library_path "."
if ![is_remote host] {
if [info exists TOOL_OPTIONS] {
- lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags ${TOOL_OPTIONS}]";
- lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags ${TOOL_OPTIONS}]";
+ lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags [get_multilibs ${TOOL_OPTIONS}] ]";
+ lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags [get_multilibs ${TOOL_OPTIONS}] ]";
} else {
- lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags]";
- lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags]";
+ lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags [get_multilibs] ]";
+ lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags [get_multilibs] ]";
}
}