diff options
| author | Brent Cook <busterb@gmail.com> | 2023-02-15 07:56:44 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-02-15 07:56:44 -0600 |
| commit | 3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5 (patch) | |
| tree | 99051bae4bb93a8e36f9560dc39f0b85d52b3f6f /include | |
| parent | 20fb2bdb1197008f46c080b8539084c69b7a8c92 (diff) | |
| download | portable-3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5.tar.gz portable-3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5.tar.bz2 portable-3c7747fd8bcaaf2eb2f901c34d573bae52fea0c5.zip | |
generate opensslconf.h based on host cpu architecture
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile.am | 14 | ||||
| -rw-r--r-- | include/openssl/opensslconf.h.in | 15 |
2 files changed, 29 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index aed6721..26e82fe 100644 --- a/include/Makefile.am +++ b/include/Makefile.am | |||
| @@ -44,4 +44,18 @@ noinst_HEADERS += compat/sys/time.h | |||
| 44 | noinst_HEADERS += compat/sys/types.h | 44 | noinst_HEADERS += compat/sys/types.h |
| 45 | noinst_HEADERS += compat/sys/uio.h | 45 | noinst_HEADERS += compat/sys/uio.h |
| 46 | 46 | ||
| 47 | noinst_HEADERS += arch/aarch64/opensslconf.h | ||
| 48 | noinst_HEADERS += arch/alpha/opensslconf.h | ||
| 49 | noinst_HEADERS += arch/amd64/opensslconf.h | ||
| 50 | noinst_HEADERS += arch/arm/opensslconf.h | ||
| 51 | noinst_HEADERS += arch/hppa/opensslconf.h | ||
| 52 | noinst_HEADERS += arch/i386/opensslconf.h | ||
| 53 | noinst_HEADERS += arch/m88k/opensslconf.h | ||
| 54 | noinst_HEADERS += arch/mips64/opensslconf.h | ||
| 55 | noinst_HEADERS += arch/powerpc/opensslconf.h | ||
| 56 | noinst_HEADERS += arch/powerpc64/opensslconf.h | ||
| 57 | noinst_HEADERS += arch/riscv64/opensslconf.h | ||
| 58 | noinst_HEADERS += arch/sh/opensslconf.h | ||
| 59 | noinst_HEADERS += arch/sparc64/opensslconf.h | ||
| 60 | |||
| 47 | include_HEADERS = tls.h | 61 | include_HEADERS = tls.h |
diff --git a/include/openssl/opensslconf.h.in b/include/openssl/opensslconf.h.in new file mode 100644 index 0000000..8842f00 --- /dev/null +++ b/include/openssl/opensslconf.h.in | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__) | ||
| 2 | #define __attribute__(a) | ||
| 3 | #endif | ||
| 4 | |||
| 5 | #if defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_NAMESPACE) | ||
| 6 | # define LCRYPTO_UNUSED(x) | ||
| 7 | # define LCRYPTO_USED(x) | ||
| 8 | # define LCRYPTO_ALIAS1(pre, x) | ||
| 9 | # define LCRYPTO_ALIAS(x) | ||
| 10 | |||
| 11 | # define LSSL_UNUSED(x) | ||
| 12 | # define LSSL_USED(x) | ||
| 13 | # define LSSL_ALIAS(x) | ||
| 14 | #endif /* LIBRESSL_INTERNAL && !LIBRESSL_NAMESPACE */ | ||
| 15 | |||
