[Developers] KNOWN_LDFLAGS

Erik Schnetter schnetter at uni-tuebingen.de
Sun Jan 11 12:38:56 CST 2004

Hash: SHA1

On Sunday 11 January 2004 19:10, Tom Goodale wrote:
> You keep asking this question.  It is necessary as some of the
> detection steps may fail with certain valid settings of LDFLAGS.

This mechanism essentially makes the user's settings for LDFLAGS and 
LIBS invisible when the compilers and linkers are detected.  This makes 
it basically impossible to use, e.g., Fortran libraries in a directory 
that is not registered with the system's /etc/ld.so.conf (or 
equivalent).  I use that a lot on machines where I install my own 
version of a compiler into my home.

I would normally expect a "-L" flag in LDFLAGS to have effect during 
linking.  The same goes for LIBS; the C++ driver does not know about 
the Fortran runtime libraries.

The Cactus autodetection (which is supposed to handle these cases) fails 
if the normal system compiler is broken, or if there are two or more 
compilers installed and the user wants to explicitly select one of 

However, you might not want to use LDFLAGS and LIBS for this purpose.  
Out of curiosity, can you give an example of what fails when these 
lines are removed?

I have a new patch that updates the documentation instead.  Okay to 

- -erik

- -- 
Erik Schnetter <schnetter at aei.mpg.de>   http://www.aei.mpg.de/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.
Version: GnuPG v1.2.4 (GNU/Linux)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: knownldflags-2-doc.diff
Type: text/x-diff
Size: 988 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20040111/260c9069/attachment-0001.bin 

More information about the Developers mailing list