diff options
Diffstat (limited to 'fips-1.0/fipsld')
-rwxr-xr-x | fips-1.0/fipsld | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fips-1.0/fipsld b/fips-1.0/fipsld index d5fd785fab..92c864ede4 100755 --- a/fips-1.0/fipsld +++ b/fips-1.0/fipsld @@ -22,6 +22,21 @@ CC=${FIPSLD_CC:-${CC}} [ $# -ge 1 ] ) && exec ${CC} "$@" +# If using an auto-tooled (autoconf/automake/libtool) project, +# configure will fail when testing the compiler or even performing +# simple checks. Pass-thru to compiler directly if not linking +# to libcrypto, allowing auto-tooled applications to utilize fipsld +# (e.g. CC=/usr/local/ssl/bin/fipsld FIPSLD_CC=gcc ./configure && make ) +case "$*" in + *libcrypto.a*) + ;; + *-lcrypto*) + ;; + *) + exec ${CC} $* + ;; +esac + # Turn on debugging output? ( while [ "x$1" != "x" -a "x$1" != "x-DDEBUG_FINGERPRINT_PREMAIN" ]; do shift; done; [ $# -ge 1 ] |