On Sat, Jun 22, 2013 at 6:57 AM, Dr. Stephen Henson <st...@openssl.org> wrote:
> On Sat, Jun 22, 2013, Jeffrey Walton wrote:
>
>> Hi All,
>>
>> I'm using openssl-fips-2.0.4 and openssl-1.0.1e. I'm working in an
>> Android environment with cross compilation. Both the FIPS Object
>> Module and FIPS Capable library built and installed without much
>> effort.
>>
>> ...
>> $ arm-linux-androideabi-gcc -Os -g2 --sysroot="$ANDROID_SYSROOT"
>> -I/usr/local/ssl/android-14/include fips-test.c -o fips-test.exe
>> /usr/local/ssl/android-14/lib/libcrypto.a
>>
>
> You use the fipsld script to link the application. If you set FIPS_CC and
> FIPS_SIG appropriately it should just work.
Thanks Doctor.

How do we make fipsld SYSROOT aware?

$ arm-linux-androideabi-gcc --sysroot="$ANDROID_SYSROOT"
-I/usr/local/ssl/android-14/include -c fips-test.c
$
$ /usr/local/ssl/android-14/bin/fipsld fips-test.o
/usr/local/ssl/android-14/lib/libcrypto.a -o fips-test.exe
In file included from /usr/local/ssl/android-14/bin/../lib/fips_premain.c:7:0:
/opt/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/include-fixed/stdio.h:50:23:
fatal error: sys/cdefs.h: No such file or directory
$

Or can we link directly against fips_premain.c and use `incore
<program>` to invoke the new cross compiler (i.e., not the legacy
`incore -exe <program>`).

Jeff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to