diff mbox

[libgomp] libgomp.fortran/fortran.exp - add -fintrinsic-modules-path ${blddir}

Message ID 53B45A03.2030407@net-b.de
State New
Headers show

Commit Message

Tobias Burnus July 2, 2014, 7:14 p.m. UTC
Thomas Schwinge wrote:
> Reopening this oldie:
>
>> index 5fa42f4..68440d18 100644
>> --- a/libgomp/testsuite/libgomp.fortran/fortran.exp
>> +++ b/libgomp/testsuite/libgomp.fortran/fortran.exp
>> @@ -14,6 +14,7 @@ set quadmath_library_path "../libquadmath/.libs"
>>   dg-init
>>   
>>   if { $blddir != "" } {
>> +    lappend ALWAYS_CFLAGS "additional_flags=-fintrinsic-modules-path ${blddir}"

How about the following (only lightly tested). I wonder why I didn't use 
it before – but it looks obvious.

Tobias

             # Allow for spec subsitution.
-           lappend ALWAYS_CFLAGS 
"additional_flags=-B${blddir}/${quadmath_library_path}/"
+           lappend ALWAYS_FFLAGS 
"additional_flags=-B${blddir}/${quadmath_library_path}/"
             set ld_library_path 
"$always_ld_library_path:${blddir}/${lang_library_path}:${blddir}/${quadmath_library_path}"
diff mbox

Patch

--- a/libgomp/testsuite/libgomp.fortran/fortran.exp
+++ b/libgomp/testsuite/libgomp.fortran/fortran.exp
@@ -48,5 +48,5 @@  if { $lang_test_file_found } {
              || [file exists 
"${blddir}/${quadmath_library_path}/libquadmath.${shlib_ext}"] } {
-           lappend ALWAYS_CFLAGS 
"ldflags=-L${blddir}/${quadmath_library_path}/"
+           lappend ALWAYS_FFLAGS 
"ldflags=-L${blddir}/${quadmath_library_path}/"