I'm trying to cross-compile libcurl (version 7.54.0) for arm-linux-gnueabihf, I have the toolkit installed in my $PATH. I'm running the command to configure libcurl:
./configure --enable-static --disable-shared --prefix=/usr/arm-linux-gnueabihf --host=arm-linux-gnueabi --build=i686-pc-linux-gnu CC=arm-linux-gnueabihf-gcc
It starts configuring but then outputs: checking if sig_atomic_t is already defined as volatile... yes checking return type of signal handlers... void checking for sys/select.h... (cached) yes checking for sys/socket.h... (cached) yes checking for select... no checking for sys/types.h... (cached) yes checking for sys/socket.h... (cached) yes checking for recv... no configure: error: Unable to link function recv
I believe it may have something to do with the shared libraries, I installed arm-linux-gnueabihf-gcc via sudo apt-get install arm-linux-gnueabihf-gcc