Hi David,
Instead of short form of "host" it's better to use full form. I guess
you need --host=arm-none-linux-gnueabi so will not need to specify CC
(it will be autodetected as well as all other tools, not only compiler).
You should point the path to GnuTLS by --with-gnutls=<path to compiled
GnuTLS>. I suspect that you need
--with-gnutls=/mnt/hgfs/Projects/GnuTLS/gnutls-3.6.15
Variable `LFLAGS` means nothing to configure and you don't need it
neither something like this.
I recommend you to learn more about cross-compiling. Pay attention to
--prefix parameter, it could help you. Also check how to use
PKG_CONFIG_PATH. If you point it to the right directory (should be
"${prefix}/lib/pkconfig") then you don't need to manually specify each
library and tricky compiler and linker flags.
--
Wishes,
Evgeny
On 07.12.2020 21:36, DJM-Avalesta wrote:
Hi,
I have managed to cross compile and build libgnuTLS from scratch with
all of its dependant libraries, libNettle, libHogweed, libGMP etc.
Now I need to link this with the build of libMicroHttpd.
I use the configure command:-
./configure --host=arm CC=arm-none-linux-gnueabi-gcc
--with-gnutls=/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src
--enable-https=yes LFLAGS=/mnt/hgfs/Projects/GnuTLS/gnutls-3.6.15/lib/.libs/
but I get this
checking how to find GnuTLS library...
-I/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src/include
-L/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src/lib -lgnutls
checking for gnutls/gnutls.h... yes
checking for gnutls_priority_set in -lgnutls... no
configure: error: can't find usable libgnutls at specified prefix
/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src
It looks like my libgnuTLS library is not right, where am I going wrong?