I want to compile wpa_supplicant using another version of openssl then the one installed on the build system.

To do this, I set these settings in the .config file:

CFLAGS += -I/custom-openssl/include
LIBS += -L/custom-openssl/lib

However, it is still linking against the default installed openssl version.

有帮助吗?

解决方案 2

I also had to set LIBS_p. Everything else was fine.

其他提示

Your -L directive will be added to the end of the list of libraries to look for .so files during linking.

Instead, either control which directory the loader should look in while loading the binary (which can be compiled into the binary) or change the list of libraries to search using the LD_LIBRARY_PATH environment variable.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top