This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
why removing configure substitutions for myprog_DEPENDENCIES?
- From: Harald Dunkel <harald at CoWare dot com>
- To: Automake List <automake at gnu dot org>
- Date: Tue, 19 Apr 2005 14:50:03 +0200
- Subject: why removing configure substitutions for myprog_DEPENDENCIES?
Hi folks,
I have a question about how the *_DEPENDENCIES are computed
from *_LDADD:
If I write a Makefile.am
bin_PROGRAMS = myprog
MYLIB = liba.a
myprog_LDADD = \
$(MYLIB) \
libb.a \
-Lsomepath \
-lother
then liba.a is added to myprog_DEPENDENCIES as expected.
But if I set MYLIB to the same value using a configure
substitution instead, then the dependency to liba.a is
gone.
The man page says:
"The automatically-assigned value is the contents of
`prog_LDADD', with most configure substitutions, `-l',
`-L', `-dlopen' and `-dlpreopen' options removed."
Why are the configure substitutions removed? Where
is the difference in this context between defining
a configure substitution, and running 'make MYLIB=liba.a'?
Regards
Harri