+Wed May 23 2001 Jeffrey D. Oldham <oldham@codesourcery.com>
+
+ * lib/g++.exp (g++_include_flags): Use args to compute
+ get_multilibs.
+ (g++_link_flags): Likewise.
+ (g++_init): Pass TOOL_OPTIONS as arguments to two above functions.
+
2001-05-22 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c90-hexfloat-1.c: Add more tests.
append flags "-I${dir} -I${dir}/src "
}
- set gccpath [get_multilibs]
+ set gccpath [get_multilibs ${args}]
if { ${HAVE_LIBSTDCXX_V3} } {
set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
global srcdir
global ld_library_path
- set gccpath [get_multilibs];
+ set gccpath [get_multilibs ${args}];
set libio_dir ""
set flags ""
set ld_library_path "."
set ALWAYS_CXXFLAGS ""
if ![is_remote host] {
- lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags]";
- lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags]";
+ if [info exists TOOL_OPTIONS] {
+ lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags ${TOOL_OPTIONS}]";
+ lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags ${TOOL_OPTIONS}]";
+ } else {
+ lappend ALWAYS_CXXFLAGS "additional_flags=[g++_include_flags]";
+ lappend ALWAYS_CXXFLAGS "ldflags=[g++_link_flags]";
+ }
}
if [info exists TOOL_OPTIONS] {