libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AM_FCFLAGS not working as I expect...


From: Ed Hartnett
Subject: Re: AM_FCFLAGS not working as I expect...
Date: Tue, 08 Nov 2005 15:31:23 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Albert Chin <address@hidden> writes:

> On Tue, Nov 08, 2005 at 06:43:43AM -0700, Ed Hartnett wrote:
>> Ralf Wildenhues <address@hidden> writes:
>> 
>> > I forgot one thing: If you're trying to use libtool with the FC (Fortran
>> > 90/95) interface, you are likely to have to go through hoops with
>> > libtool-1.5.x, since it doesn't support it.  Current CVS Libtool, which
>> > will hopefully soon be Libtool-2.0, does support FC.
>> 
>> I am now using 1.5.20 everywhere, which is the most recent release, I
>> believe.
>> 
>> >
>> >> I am getting make distcheck working in the hopes that by doing so, I
>> >> might in some way fix my libtool problems on AIX.
>> >
>> > Show the issues, please.
>> 
>> Here it is, still can't get f95 code to compile...
>> 
>> Making all in f90
>> make[2]: Entering directory `/home/bluesky/edh/netcdf-3/f90'
>> /bin/sh ../libtool --mode=compile xlf90 -I../libsrc -I. -g -c -o
>> typeSizes.lo  typeSizes.f90
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>> make[2]: *** [typeSizes.lo] Error 1
>> make[2]: Leaving directory `/home/bluesky/edh/netcdf-3/f90'
>
> Just means libtool doesn't know that xlf90 == Fortran.
>
> Does this work:
>   $ cd /home/bluesky/edh/netcdf-3/f90
>   $ /bin/sh ../libtool --tag=F77 --mode=compile xlf90 -I../libsrc -I. \
>   -g -c -o typeSizes.lo  typeSizes.f90
>
>> The Makefile.am does include:
>> 
>> .f90.o:
>>         $(FCCOMPILE) -c -o $@ $(AM_FCFLAGS) $(FCFLAGS_f90) $<
>> 
>> .f90.obj:
>>         $(FCCOMPILE) -c -o $@ $(AM_FCFLAGS) $(FCFLAGS_f90)
>>         `$(CYGPATH_W) '$<'`
>> 
>> .f90.lo:
>>         $(LTFCCOMPILE) -c -o $@ $(FCFLAGS_f90) $<
>> 
>> as you suggested. Unfortunately, that didn't seem to help libtools tag
>> problem.
>
> If --tag=F77 works, add it to the above.
>
> -- 
> albert chin (address@hidden)
>
>

Thanks, I'll try this and let you know...

Ed
-- 
Ed Hartnett  -- address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]