Philip Prindeville via RT wrote:
The target:
[SNIP]
Also, in a cross-compiling environment, "CC" tends to default to the target machine.

If you're building intermediate binaries to be run as part of the build itself, these need to be indicated separately.

A common practice is:

HOSTCC?=$(CC)
...

fips_standalone_sha1$(EXE_EXT): sha/fips_standalone_sha1.c
        $(HOSTCC) $(CFLAGS) -DFIPSCANISTER_O -o $@ sha/fips_standalone_sha1.c 
$(FIPSLIBDIR)fipscanister.o

OpenSSL use  CROSS_COMPILE_PREFIX.

Roumen
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to