automake
[Top][All Lists]
Advanced

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

Setting LDADD in Makefile.am makes _DEPENDENCIES empty


From: Navneet Dalal
Subject: Setting LDADD in Makefile.am makes _DEPENDENCIES empty
Date: Fri, 13 Jun 2008 00:13:48 -0700

Hi all, I am facing a strange problem. Can someone point out where am I going wrong.

If my makefile.am looks as following, then it automatically generates mybinary_DEPEDENCIES and set it to ../lib/libutil.la
bin_PROGRAMS    =  mybinary
LDADD= ../lib//libutil.la
mybinary_SOURCES   = mybinary.cpp

However if my makefile looks like
bin_PROGRAMS    =  mybinary
LDADD= @MY_LIBS@
mybinary_SOURCES   = mybinary.cpp

where MY_LIBS is a variable defined as AC_SUBST(MY_LIBS) and set in configure.in, then
mybinary_DEPEDENCIES is set as empty.

Any help/pointer would be appreciated.

Thanks
ND




reply via email to

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