diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2005-09-13 02:47:14 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2005-09-13 02:47:14 +0000 |
commit | 31a7113e7a59fc3880f6294b66d79dc836a2968d (patch) | |
tree | d5c3f8d6e1fee1618f8245b959862ce5d09c49c9 /libstdc++-v3 | |
parent | 060e73279b91815dba57658f6486f07285c2db0a (diff) | |
download | gcc-31a7113e7a59fc3880f6294b66d79dc836a2968d.zip gcc-31a7113e7a59fc3880f6294b66d79dc836a2968d.tar.gz gcc-31a7113e7a59fc3880f6294b66d79dc836a2968d.tar.bz2 |
libstdc++.exp (v3-build_support): Use sharedlib for type of target_compile.
2005-09-12 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/lib/libstdc++.exp (v3-build_support): Use sharedlib for
type of target_compile.
(v3_target_compile): Set flags for sharelib type.
From-SVN: r104209
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 12 |
2 files changed, 16 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 4f3f286..059043b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,10 @@ 2005-09-12 Benjamin Kosnik <bkoz@redhat.com> + + * testsuite/lib/libstdc++.exp (v3-build_support): Use sharedlib for + type of target_compile. + (v3_target_compile): Set flags for sharelib type. + +2005-09-12 Benjamin Kosnik <bkoz@redhat.com> David Edelsohn <dje@gcc.gnu.org> PR libstdc++/22554 diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 333d50c..694d190 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -315,9 +315,16 @@ proc v3_target_compile { source dest type options } { set cxx_final [concat $cxx_final $cxxlibglossflags] set cxx_final [concat $cxx_final $cxxflags] set cxx_final [concat $cxx_final $includes] - # Link the support objects into executables. + + # Flag setting based on type argument. if { $type == "executable" } { + # Link the support objects into executables. set cxx_final [concat $cxx_final ${v3-test_objs}] + } else { + if { $type == "sharedlib" } { + # Don't link in anything. + set type "executable" + } } lappend options "compiler=$cxx_final" @@ -330,6 +337,7 @@ proc v3_target_compile { source dest type options } { # addition, set v3-wchar_t, v3-threads, v3-test_objs, and v3-symver # appropriately. proc v3-build_support {} { + global cxx global srcdir global v3-wchar_t global v3-threads @@ -386,7 +394,7 @@ proc v3-build_support {} { set object_file [file rootname $f].so # Compile with "-w" so that warnings issued by the compiler # do not prevent compilation. - if { [v3_target_compile $srcdir/$f $object_file "executable" \ + if { [v3_target_compile $srcdir/$f $object_file "sharedlib" \ [list "incdir=$srcdir" "additional_flags=-w -shared -fPIC -DPIC"]] != "" } { error "could not compile $f" |