generate opensslconf.h based on host cpu architecture
This commit is contained in:
parent
20fb2bdb11
commit
3c7747fd8b
2
.gitignore
vendored
2
.gitignore
vendored
@ -145,6 +145,7 @@ stamp-h1
|
|||||||
stamp-h2
|
stamp-h2
|
||||||
|
|
||||||
include/openssl/Makefile.am
|
include/openssl/Makefile.am
|
||||||
|
include/arch
|
||||||
|
|
||||||
VERSION
|
VERSION
|
||||||
crypto/VERSION
|
crypto/VERSION
|
||||||
@ -152,6 +153,7 @@ ssl/VERSION
|
|||||||
tls/VERSION
|
tls/VERSION
|
||||||
libtls-standalone/VERSION
|
libtls-standalone/VERSION
|
||||||
|
|
||||||
|
ssl/hidden
|
||||||
ssl/*.c
|
ssl/*.c
|
||||||
ssl/*.h
|
ssl/*.h
|
||||||
tls/*.c
|
tls/*.c
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS = crypto ssl tls include apps man
|
SUBDIRS = include crypto ssl tls apps man
|
||||||
if ENABLE_TESTS
|
if ENABLE_TESTS
|
||||||
SUBDIRS += tests
|
SUBDIRS += tests
|
||||||
endif
|
endif
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
AM_CFLAGS =
|
AM_CFLAGS =
|
||||||
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/compat -DLIBRESSL_INTERNAL
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||||
|
AM_CPPFLAGS += -I$(abs_top_builddir)/include
|
||||||
|
AM_CPPFLAGS += -I$(top_srcdir)/include/compat -DLIBRESSL_INTERNAL
|
||||||
AM_CPPFLAGS += -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS=
|
AM_CPPFLAGS += -D__BEGIN_HIDDEN_DECLS= -D__END_HIDDEN_DECLS=
|
||||||
|
@ -44,4 +44,18 @@ noinst_HEADERS += compat/sys/time.h
|
|||||||
noinst_HEADERS += compat/sys/types.h
|
noinst_HEADERS += compat/sys/types.h
|
||||||
noinst_HEADERS += compat/sys/uio.h
|
noinst_HEADERS += compat/sys/uio.h
|
||||||
|
|
||||||
|
noinst_HEADERS += arch/aarch64/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/alpha/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/amd64/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/arm/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/hppa/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/i386/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/m88k/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/mips64/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/powerpc/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/powerpc64/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/riscv64/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/sh/opensslconf.h
|
||||||
|
noinst_HEADERS += arch/sparc64/opensslconf.h
|
||||||
|
|
||||||
include_HEADERS = tls.h
|
include_HEADERS = tls.h
|
||||||
|
15
include/openssl/opensslconf.h.in
Normal file
15
include/openssl/opensslconf.h.in
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
|
||||||
|
#define __attribute__(a)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_NAMESPACE)
|
||||||
|
# define LCRYPTO_UNUSED(x)
|
||||||
|
# define LCRYPTO_USED(x)
|
||||||
|
# define LCRYPTO_ALIAS1(pre, x)
|
||||||
|
# define LCRYPTO_ALIAS(x)
|
||||||
|
|
||||||
|
# define LSSL_UNUSED(x)
|
||||||
|
# define LSSL_USED(x)
|
||||||
|
# define LSSL_ALIAS(x)
|
||||||
|
#endif /* LIBRESSL_INTERNAL && !LIBRESSL_NAMESPACE */
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
--- include/openssl/opensslconf.h.orig Tue Nov 22 21:08:27 2022
|
|
||||||
+++ include/openssl/opensslconf.h Wed Nov 23 12:38:07 2022
|
|
||||||
@@ -1,6 +1,21 @@
|
|
||||||
#include <openssl/opensslfeatures.h>
|
|
||||||
/* crypto/opensslconf.h.in */
|
|
||||||
|
|
||||||
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(__attribute__)
|
|
||||||
+#define __attribute__(a)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#if defined(LIBRESSL_INTERNAL) && !defined(LIBRESSL_NAMESPACE)
|
|
||||||
+# define LCRYPTO_UNUSED(x)
|
|
||||||
+# define LCRYPTO_USED(x)
|
|
||||||
+# define LCRYPTO_ALIAS1(pre, x)
|
|
||||||
+# define LCRYPTO_ALIAS(x)
|
|
||||||
+
|
|
||||||
+# define LSSL_UNUSED(x)
|
|
||||||
+# define LSSL_USED(x)
|
|
||||||
+# define LSSL_ALIAS(x)
|
|
||||||
+#endif /* LIBRESSL_INTERNAL && !LIBRESSL_NAMESPACE */
|
|
||||||
+
|
|
||||||
#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
|
|
||||||
#define OPENSSLDIR "/etc/ssl"
|
|
||||||
#endif
|
|
@ -70,7 +70,6 @@ fi
|
|||||||
|
|
||||||
$CP $libssl_src/LICENSE COPYING
|
$CP $libssl_src/LICENSE COPYING
|
||||||
|
|
||||||
$CP $libcrypto_src/arch/amd64/opensslconf.h include/openssl
|
|
||||||
$CP $libcrypto_src/opensslfeatures.h include/openssl
|
$CP $libcrypto_src/opensslfeatures.h include/openssl
|
||||||
$CP $libssl_src/pqueue.h include
|
$CP $libssl_src/pqueue.h include
|
||||||
|
|
||||||
@ -152,6 +151,12 @@ for i in `awk '/SOURCES|HEADERS/ { print $3 }' crypto/Makefile.am` ; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for i in $libcrypto_src/arch/*; do
|
||||||
|
arch=`basename $i`
|
||||||
|
mkdir -p include/arch/$arch
|
||||||
|
$CP $libcrypto_src/arch/$arch/opensslconf.h include/arch/$arch/
|
||||||
|
done
|
||||||
|
|
||||||
for i in $libcrypto_src/bn/arch/*; do
|
for i in $libcrypto_src/bn/arch/*; do
|
||||||
arch=`basename $i`
|
arch=`basename $i`
|
||||||
mkdir -p crypto/bn/arch/$arch
|
mkdir -p crypto/bn/arch/$arch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user