Use "resp" for default directory name for .rsp files.
[openssl.git] / fips / fipsld
index 442eba45c3ce6e7a778f98ff8d84b6a3c1915094..6184e2064e409f73bfa2541c7b4f8378ac9aaef1 100755 (executable)
@@ -94,7 +94,7 @@ lib*|*.dll)   # must be linking a shared lib...
                PREMAIN_DSO="${THERE}/fips/fips_premain_dso"
        elif [ -x "${THERE}/bin/fips_standalone_sha1" ]; then
                FINGERTYPE="${THERE}/bin/fips_standalone_sha1"
-               PREMAIN_DSO="fips_premain_dso"
+               PREMAIN_DSO="./fips_premain_dso"
        fi
 
        # verify fipspremain.c against its detached signature...
@@ -106,17 +106,17 @@ lib*|*.dll)       # must be linking a shared lib...
                diff -w "${CANISTER_O}.sha1" - || \
        { echo "${CANISTER_O} fingerprint mismatch"; exit 1; }
 
-       [ -z "${FIPSLIBCRYPTO}" -a -f "${THERE}/libcrypto.a" ] && \
-               FIPSLIBCRYPTO = -f "${THERE}/libcrypto.a"
+       [ -z "${FIPSLD_LIBCRYPTO}" -a -f "${THERE}/libcrypto.a" ] && \
+               FIPSLD_LIBCRYPTO="${THERE}/libcrypto.a"
                
 
        # Temporarily remove fipscanister.o from libcrypto.a!
        # We are required to use the standalone copy...
-       if [ -n  "${FIPSLIBCRYPTO}" ]; then
-           if ar d "${FIPSLIBCRYPTO}" fipscanister.o; then
-               (ranlib "${FIPSLIBCRYPTO}") 2>/dev/null || :
-               trap    'ar r "${FIPSLIBCRYPTO}" "${CANISTER_O}";
-                        (ranlib "${FIPSLIBCRYPTO}") 2>/dev/null || :;
+       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 || :;
                         sleep 1;
                         touch -c "${TARGET}"' 0
            fi