libtool
[Top][All Lists]
Advanced

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

How to use compiler wrappers


From: John R. Cary
Subject: How to use compiler wrappers
Date: Sun, 22 Mar 2009 09:50:20 -0600
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

I am in a situation where due to flakey compilers (pgi)
I had to write a compiler wrapper such that if code
does not compile, I reduce the optimization level, then
try again.

My way of dealing with this is to create a compiler
wrapper as a wrapper.sh.in file with

address@hidden@

and so forth so that at configure time it knows the real
compilers.

Then at make time I do

make CC=wrapper.sh

to make the code.

When I do this, I get

/bin/sh ../libtool --mode=compile /project/projectdirs/facets/cary/facetsall-franklin/physics/nubeam/par/txutils/f90 -I../../include -I ../random -I ../old_xplasma -I ../xplasma2 -I ../ezcdf -I ../pspline -I ../rfxqlo -I ../plasma_state_kernel -I ../plasma_state -I ../xstraln -O -c -o nbi_types.lo ../../nubeam/nbi_types.f90
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[2]: *** [nbi_types.lo] Error 1

From documentation I can find, I see that I need to add the
flag

AM_LIBTOOLFLAGS = --tag=FC

Will this cause problems when the directory has C or C++ code as well?
I assume it will get the wrong tag?  (BTW, it seems to work, but
might that be by coincidence?)

If so, is there an easy fix?

I am using libtoolize (GNU libtool) 2.2.6.

Thanks....John Cary




reply via email to

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