Re: linker input file unused/linking not done gcc warning
On 08/02/2016 10:38 AM, jonetsu wrote:
Is it normal to get a 'linker imput file unused because linking
not done' warning when compiling C code that uses OpenSSL in FIPS
mode, hence using fipsld ?
The object file is actually generated,a s well as the executable,
and it does execute in a meaningful manner.
gcc: warning: /usr/include/openssl/: linker input file unused
because linking not done
FIPSLD_CC=gcc /usr/lib/ssl/fips-2.0/bin/fipsld -o
fips_hmac-errCode fips_hmac-errCode.o /usr/lib/arm-li
nux-gnueabihf/libcrypto.a -ldl -lz
The simple Makefile:
OPENSSLDIR = /usr/lib/ssl
LIBCRYPTO = /usr/lib/arm-linux-gnueabihf/libcrypto.a
INCLUDES = /usr/include/openssl/
The later usage makes it seem like this should be
-I/usr/include/openssl/ , including the "-I".