1

I am following this link to cross compile the iw tools. I can compile libnl, iw, openssl, and installed them in CentOS. For Open SSL, I used ./configure Linux-generic32 --prefix=/usr/arm-xilinx/linux-gnueabi, so it should install to that directory.

When I try to compile hostapd, I followed exact steps except make CC=arm-xilinx-linux-gnueabi-gcc and got this

../src/crypto/tls_openssl.c:19:25: fatal error: openssl/ssl.h: No such file or directory

I think it should be caused by not knowing where is openssl installed to. So how do I tell the make to look at /usr/arm-xilinx-linux-gnueabi/include/openssl instead of /usr/include/openssl for the openssl?

Splash
  • 1,288
  • 2
  • 18
  • 36

1 Answers1

0

You can tell your Makefile by using CFLAGS for the header files and LDFLAGS for the libraries.

make CFLAGS=-I<include/path> LDFLAGS=-L<lib/path>
ashwanth selvam
  • 486
  • 3
  • 13