curl-library
Re: [Patch] Link fix with RTMP
Date: Sat, 13 Nov 2010 20:43:32 -0800
Julien Chaffraix wrote:
> Hi fellow hackers,
>
> Trying to build libcurl on my machine with RTMP enabled leads to
> several undefined symbols errors at link time in curl (not libcurl).
> My understanding of this issue is that I have the librtmp files
> (headers and library) without the pkgconfig files. Configure will
> detect the library but does not set -lrtmp to the curl link flags
> because it cannot query pkgconfig for those.
>
> Attached is a patch to add -lrtmp to the CURL_LIBS whenever RTMP is
> enabled. This fixes the build but I am not sure it is the right
> solution (or something I should fix on my setup).
>
> Any thoughts about the change?
Yes, fix your setup.
Just adding -lrtmp is not reliable; if librtmp is a static library you won't
pick up its dependencies.
-- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/ ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-11-14