libtool
[Top][All Lists]
Advanced

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

Re: AC_LIBTOOL_DLOPEN doesn't add -ldl to any LIBS?


From: Gary V. Vaughan
Subject: Re: AC_LIBTOOL_DLOPEN doesn't add -ldl to any LIBS?
Date: Mon, 13 Oct 2003 11:07:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3

Kevin P. Fleming wrote:
My configure.ac uses AC_LIBTOOL_DLOPEN (among many other macros :-), and this works fine. However, this macro does not seem to record its results so that the proper dynamic loader library (if one is needed) is added to the link commands.

As it stands today, I'm adding the contents of $lt_cv_dlopen_libs to LIBS, and that works, but I'm thinking that relying on the value of an internal macro variable like that is not the best solution. Any better ideas out there?

In your Makefile.am:

  libfoo_la_LDADD += $(LIBADD_DL)

or

  program_LIBADD += $(LIBADD_DL)

--
  ())_.  Gary V. Vaughan    gary@(lilith.warpmail.net|gnu.org)
  ( '/   Research Scientist http://www.oranda.demon.co.uk       ,_())____
  / )=   GNU Hacker         http://www.gnu.org/software/libtool  \'      `&
`(_~)_   Tech' Author       http://sources.redhat.com/autobook   =`---d__/





reply via email to

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