diff options
author | Andy Polyakov <appro@openssl.org> | 2012-12-13 23:51:01 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-12-13 23:51:01 +0100 |
commit | 4d2654783c099b3c718795e78c36efbeb85f8597 (patch) | |
tree | 10847fb387b814baee0c13b14ac543a9d2833ccf /fips | |
parent | Use new partial chain flag instead of modifying input parameters. (diff) | |
download | openssl-4d2654783c099b3c718795e78c36efbeb85f8597.tar.xz openssl-4d2654783c099b3c718795e78c36efbeb85f8597.zip |
fips/fipsld: improve cross-compile support.
Diffstat (limited to 'fips')
-rwxr-xr-x | fips/fipsld | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fips/fipsld b/fips/fipsld index 62565fd032..50f20752b1 100755 --- a/fips/fipsld +++ b/fips/fipsld @@ -71,7 +71,7 @@ PREMAIN_C=`dirname "${CANISTER_O}"`/fips_premain.c HMAC_KEY="etaonrishdlcupfm" -case "`(uname -s) 2>/dev/null`" in +case "${CROSS_COMPILE:-`(uname -s) 2>/dev/null`}" in OSF1|IRIX*) _WL_PREMAIN="-Wl,-init,FINGERPRINT_premain" ;; HP-UX) _WL_PREMAIN="-Wl,+init,FINGERPRINT_premain" ;; AIX) _WL_PREMAIN="-Wl,-binitfini:FINGERPRINT_premain,-bnoobjreorder";; @@ -113,10 +113,10 @@ lib*|*.dll) # must be linking a shared lib... # Temporarily remove fipscanister.o from libcrypto.a! # We are required to use the standalone copy... if [ -n "${FIPSLD_LIBCRYPTO}" ]; then - if ar d "${FIPSLD_LIBCRYPTO}" fipscanister.o; then - (ranlib "${FIPSLD_LIBCRYPTO}") 2>/dev/null || : - trap 'ar r "${FIPSLD_LIBCRYPTO}" "${CANISTER_O}"; - (ranlib "${FIPSLD_LIBCRYPTO}") 2>/dev/null || :; + if ${CROSS_COMPILE}ar d "${FIPSLD_LIBCRYPTO}" fipscanister.o; then + (${CROSS_COMPILE}ranlib "${FIPSLD_LIBCRYPTO}") 2>/dev/null || : + trap '${CROSS_COMPILE}ar r "${FIPSLD_LIBCRYPTO}" "${CANISTER_O}"; + (${CROSS_COMPILE}ranlib "${FIPSLD_LIBCRYPTO}") 2>/dev/null || :; sleep 1; touch -c "${TARGET}"' 0 fi |