[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [msmtp-users] forcing TLS during cross compile to embedded system
Hi!
On 09/04/11 17:22, plambert@...253... wrote:
> When cross compiling for the embedded ARM system configure reports that
> TLS will not be compiled in. I guess it can't find the libraries (it's
> being built on a PC to run on the embedded system).
>
> I tried the configure option "--with-ssl=openssl" and it still reports
> that TLS will not be compiled in. The embedded system does have the
> opnssl libraries installed.
>
> How do you configure the cross compile build to compile in the TLS support
> and use the openssl libraries in the target ?.
The configure script needs to find the libraries, and in cross
compilation situations that sometimes requires a little help.
If you have your libraries for cross compilation in the directory
/cross/usr (with subdirectories lib and include), then the following
should work:
- With the latest release (1.4.23), you can give the configure script
package-specific options. For OpenSSL, that would be
./configure --with-libssl-prefix=/cross/usr.
- With the current development version, you set the environment variable
PKG_CONFIG_PATH to the (list of) pkgconfig directories. This then works
for all packages at once.
./configure PKG_CONFIG_PATH=/cross/usr/lib/pkgconfig
Martin