[asterisk-dev] Add Dependency

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Sep 11 08:56:04 CDT 2007


On Tuesday 11 September 2007 08:21:55 Grey Man wrote:
> Hi,
>
> I need to add a dependency so that app_dial.c is linked against the Curl
> library. Unfortunately I'm not familiar (or smart) enough to work out how
> to set this within the Asterisk build process. The best I have been able to
> do is add a depend element into the menuselect-tree file but that
> disappears when "make clean" is run.
>
> Can anyone tell me the file I should be adding this dependency into? My
> code is building ok but due to not being linked properly I get a seg fault
> when the Curl dependent methods in Dial applicaiton are called.

It's actually quite easy.  Just add the dependency directly to app_dial.c,
via the MODULEINFO comment:

/*** MODULEINFO
    <depend>curl</depend>
 ***/

Then, rerun 'make menuselect' to make sure that it picks up the new
dependency, 's' to save it, and finally 'make' will rebuild app_dial with the
extra libraries.

-- 
Tilghman



More information about the asterisk-dev mailing list