[asterisk-dev] Add Dependency
Russell Bryant
russell at digium.com
Tue Sep 11 08:45:50 CDT 2007
Grey Man wrote:
> 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.
This is all you need to add:
Index: apps/app_dial.c
===================================================================
--- apps/app_dial.c (revision 81997)
+++ apps/app_dial.c (working copy)
@@ -25,6 +25,10 @@
* \ingroup applications
*/
+/*** MODULEINFO
+ <depend>curl</depend>
+ ***/
+
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
--
Russell Bryant
Software Engineer
Digium, Inc.
More information about the asterisk-dev
mailing list