diff options
| author | Brent Cook <bcook@openbsd.org> | 2014-08-17 07:58:32 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2014-08-17 07:58:32 -0500 |
| commit | 01726893f54a5d92cae0e13d60c77d4199d647f0 (patch) | |
| tree | 79a69347ee4a8531999cc6e59b40c91b6b55eeaa | |
| parent | 2cef68f3ed82c2c036d1909042dcd23c14ec82e3 (diff) | |
| download | portable-01726893f54a5d92cae0e13d60c77d4199d647f0.tar.gz portable-01726893f54a5d92cae0e13d60c77d4199d647f0.tar.bz2 portable-01726893f54a5d92cae0e13d60c77d4199d647f0.zip | |
add --disable-asm flag for disabling inline asm
Surprisingly (or not), a lot of OpenSSL's inline assembly actually makes
things slower with a relatively modern compiler (read, gcc >= 4.x).
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7b63cdc..7c818e3 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -165,6 +165,10 @@ AC_ARG_WITH([enginesdir], | |||
| 165 | AC_DEFINE_UNQUOTED(ENGINESDIR, "$withval") | 165 | AC_DEFINE_UNQUOTED(ENGINESDIR, "$withval") |
| 166 | ) | 166 | ) |
| 167 | 167 | ||
| 168 | AC_ARG_ENABLE([asm], | ||
| 169 | AS_HELP_STRING([--disable-asm], [Disable assembly])) | ||
| 170 | AS_IF([test "x$enable_asm" == "xno"], [CFLAGS="$CFLAGS -DOPENSSL_NO_ASM"]) | ||
| 171 | |||
| 168 | LT_INIT | 172 | LT_INIT |
| 169 | 173 | ||
| 170 | AC_CONFIG_FILES([ | 174 | AC_CONFIG_FILES([ |
