diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-02 20:55:23 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-02 20:55:23 +0000 |
commit | e08fa0d78753e62dcc1fdde87a97660f98a38b1b (patch) | |
tree | f47e5ffb873cb827107ad3df7d662381607ab1e9 /libgomp/testsuite | |
parent | 6e25bee3c2132f7046bb32472444e75a3e1e1f9c (diff) | |
download | gcc-e08fa0d78753e62dcc1fdde87a97660f98a38b1b.tar.gz |
libgomp/
* testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
options when choosing a multilib.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/lib/libgomp.exp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp index 5a7ec5f9ca5..4712de23e32 100644 --- a/libgomp/testsuite/lib/libgomp.exp +++ b/libgomp/testsuite/lib/libgomp.exp @@ -86,9 +86,6 @@ proc libgomp_init { args } { set CFLAGS "" } - set always_ld_library_path "${blddir}/.libs" - add_path always_ld_library_path [find_libgcc_s $GCC_UNDER_TEST] - set ALWAYS_CFLAGS "" if { $blddir != "" } { lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/" @@ -122,6 +119,16 @@ proc libgomp_init { args } { # And, gee, turn on OpenMP. lappend ALWAYS_CFLAGS "additional_flags=-fopenmp" + + set compiler $GCC_UNDER_TEST + foreach flag $ALWAYS_CFLAGS { + if { [regexp {^(additional_flags|ldflags)=(.*)} $flag d1 d2 option] } { + lappend compiler $option + } + } + + set always_ld_library_path "${blddir}/.libs" + add_path always_ld_library_path [find_libgcc_s $compiler] } # |