This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
question: use of LDFLAGS=-static
- From: Ilya Shlyakhter <ilya_shl at MIT dot EDU>
- To: automake at gnu dot org
- Date: Mon, 25 Feb 2002 17:59:42 -0500
- Subject: question: use of LDFLAGS=-static
Hello automake experts,
How do I get automake to do static linking
whenever possible, and do dynamic linking
otherwise? Simply using
LDFLAGS = -static
fails on IRIX and MacOS (darwin),
where static linking is not possible.
Omitting -static works everywhere, but
the resulting binaries won't work on
systems lacking the right shared libraries.
Any suggestions would be greatly appreciated.
Ilya
ilya_shl@mit.edu