This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, libgomp, testsuite] add libgfortran.spec.
- From: IainS <developer at sandoe-acoustics dot co dot uk>
- To: Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 25 Nov 2010 11:18:41 +0000
- Subject: [Patch, libgomp, testsuite] add libgfortran.spec.
This will allow fortran libgomp tests to use libquadmath when
required (I'm told none do yet).
.. but it will also ensure that, if the libgfortran.spec includes
substitutions, they are available in the testsuite.
checked (in conjunction with http://gcc.gnu.org/ml/fortran/2010-11/msg00348.html)
that the static lib substitution occurs properly for i686-darwin9.
OK for trunk (with a proper Changelog, of course)?
Iain
Index: libgomp/testsuite/libgomp.fortran/fortran.exp
===================================================================
--- libgomp/testsuite/libgomp.fortran/fortran.exp (revision 167142)
+++ libgomp/testsuite/libgomp.fortran/fortran.exp (working copy)
@@ -8,6 +8,7 @@ set lang_library_path "../libgfortran/.libs"
set lang_link_flags "-lgfortran"
set lang_test_file_found 0
set quadmath_library_path "../libquadmath/.libs"
+set lang_spec_path "../libgfortran"
# Initialize dg.
@@ -44,6 +45,8 @@ if { $lang_test_file_found } {
lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/${quadmath_library_path}/"
# Allow for spec subsitution.
lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/$
{quadmath_library_path}/"
+ # use the libgfortran spec.
+ lappend ALWAYS_CFLAGS "additional_flags=-specs=${blddir}/$
{lang_spec_path}/libgfortran.spec"
set ld_library_path "$always_ld_library_path:${blddir}/$
{lang_library_path}:${blddir}/${quadmath_library_path}"
} else {
set ld_library_path "$always_ld_library_path"
===