On Jul 8, 2014, at 3:05 AM, Ryan Schmidt <[email protected]> wrote:

> 
> On Jul 7, 2014, at 11:28 PM, Mark Brethen wrote:
> 
>> I was told that until a patch is submitted, I can just add 
>> -L/opt/local/lib/gcc48 to the LDFLAGS environment variable. So I put this in 
>> the portfile:
>> 
>> configure.ldflags-append "-L${prefix}/lib/gcc48"
>> 
>> I'm thinking that "gcc48" should be replaced by a variable, but what do I 
>> use?
> 
> MacPorts doesn't provide a variable suitable for that. If you have gcc 
> variants, you could append to configure.ldflags in each variant, adjusting 
> the path as needed for each gcc version.
> 

I have:

compilers.choose        fc
compilers.setup         -dragonegg -g95 require_fortran

if {![fortran_variant_isset]} {
    default_variants-append +gcc48
}

configure.ldflags-append "-L${prefix}/lib/gcc48 -lgfortran"

If the user has set a different version of gcc this won't work.

Mark




_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to