I cross-compiled FIPS for armv7 using the instructions from http://opensslfoundation.com/testing/validation-2.0/platforms/ios/
I'm having difficulty cross-compiling the openssl dependency on fips.
I get the following error in the terminal.
/usr/local/ssl/fips-2.0/bin/fipsld: line 185: ./openssl: Bad CPU type in executable make[2]: *** [link_app.] Error 1 make[1]: *** [openssl] Error 2 make: *** [build_apps] Error 1
This is because the openssl executable in the "/ apps" folder has the armv7 architecture. Since I cross-compile openssl, I only need libssl and libcrypto with armv7 architecture, other intermediate executables should build with i386 architecture.
Any help with setting environment variables is appreciated.
Vinay source share