Re: SSL configure probs
Date: Mon, 13 Jul 2009 20:42:26 +0200
Daniel Stenberg schrieb:
> The problem is that the the most recent GnuTLS versions have switched to
> only use pkg-config now and they ditched the previous libgnutls-config
> I was stupidly assuming they used to do both, but clearly slightly older
> Debian installs only have libgnutls-config and not pkg-config for gnutls.
> The proper fix is then most likely to bring back the libgnutls-config
> approach for when no path is given and 'pkg-config --exists gnutls'
> returns non-zero.
I've seen you did this some days ago, and Linux builds work now again;
however I see another prob with cross builds: configure cant get it
right via libgnutls-config because it doesnt know where the right
libgnutls-config is! Only the version for the build box can be found
since in search path:
svwe20:~ # which libgnutls-config && libgnutls-config --version &&
-L/usr/lib -lgnutls -lgcrypt -lgpg-error
the version which belongs to the cross compiler is not in search path:
svwe20:~ # /usr/x86_64-pc-mingw32/sys-root/mingw/bin/libgnutls-config
--version && /usr/x86_64-pc-mingw32/sys-root/mingw/bin/libgnutls-config
-L/usr/x86_64-pc-mingw32/sys-root/mingw/lib -lgcrypt -lgpg-error -lws2_32
so in order to use this one we would need a configure option for setting
the full path to libgnutls-config ...
anyway, I tried now with pointing to the cross GnuTLS installation + had
to add LDFLAGS manually, but this seems to work:
The reason I need the LDFLAGS is because without configure only adds
'-lgnutls', but not '-lgcrypt -lgpg-error':
Received on 2009-07-13