Compare commits
4 Commits
2025-04-05
...
master
Author | SHA1 | Date | |
---|---|---|---|
1191874c5e | |||
ffb35212ba | |||
cda1738165 | |||
0822709d4c |
9
build.sh
9
build.sh
@ -57,8 +57,8 @@ fi
|
||||
case "${CC_TARGET}" in
|
||||
i686-*)
|
||||
readonly MY_CPU=x86
|
||||
readonly MY_MARCH=i486
|
||||
readonly MY_MTUNE=intel
|
||||
readonly MY_MARCH=i586
|
||||
readonly MY_MTUNE=generic
|
||||
;;
|
||||
x86_64-*)
|
||||
readonly MY_CPU=x64
|
||||
@ -135,7 +135,7 @@ printf "\n==================== download ====================\n\n"
|
||||
fetch_pkg "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23" "${PKGS_DIR}/zlib.tar.gz" https://zlib.net/zlib-1.3.1.tar.gz
|
||||
fetch_pkg "8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1" "${PKGS_DIR}/zstd.tar.gz" https://github.com/facebook/zstd/releases/download/v1.5.6/zstd-1.5.6.tar.gz
|
||||
fetch_pkg "e720a6ca29428b803f4ad165371771f5398faba397edf6778837a18599ea13ff" "${PKGS_DIR}/brotli.tar.gz" https://github.com/google/brotli/archive/refs/tags/v1.1.0.tar.gz
|
||||
fetch_pkg "78d675d94c0ac3a8b44073f0c2b373d948c5afd12b25c9e245262f563307a566" "${PKGS_DIR}/openssl.tar.gz" https://github.com/quictls/openssl/archive/refs/tags/openssl-3.3.0-quic1.tar.gz
|
||||
fetch_pkg "930c72e5f36f55e0a4fddca2f3ea3b3ca6d3b429e0e41cdd65b89d5db14ab583" "${PKGS_DIR}/openssl.tar.gz" https://github.com/quictls/quictls/archive/f18b99b8535ecf8bca4d327424b68883cf01dcef.tar.gz
|
||||
fetch_pkg "c68e05989a93c002e3ba8df3baef0021c17099aa2123a9c096a5cc8e029caf95" "${PKGS_DIR}/rtmpdump.tar.gz" https://distfiles.macports.org/rtmpdump/f1b83c10d8beb43fcc70a6e88cf4325499f25857.tar.gz
|
||||
fetch_pkg "3b08f5f4f9b4eb82f151a7040bfd6fe6c6fb922efe4b1659c66ea933276965e8" "${PKGS_DIR}/libiconv.tar.gz" https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.18.tar.gz
|
||||
fetch_pkg "c918503d593d70daf4844d175a13d816afacb667c06fba1ec9dcd5002c1518b7" "${PKGS_DIR}/gettext.tar.gz" https://ftp.gnu.org/pub/gnu/gettext/gettext-0.24.tar.gz
|
||||
@ -194,7 +194,7 @@ CFLAGS="-march=${MY_MARCH} -mtune=${MY_MTUNE} -DNDEBUG -D_WIN32_WINNT=0x0501 -I$
|
||||
popd
|
||||
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
# OpenSSL
|
||||
# OpenSSL / QuicTLS
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
printf "\n==================== OpenSSL ====================\n\n"
|
||||
readonly OSSL_DIR="${WORK_DIR}/openssl"
|
||||
@ -203,6 +203,7 @@ tar -xvf "${PKGS_DIR}/openssl.tar.gz" --strip-components=1 -C "${OSSL_DIR}"
|
||||
[[ "${MY_CPU}" == "x64" ]] && readonly ossl_flag="no-sse2" || readonly ossl_flag="386"
|
||||
[[ "${MY_CPU}" == "x64" ]] && readonly ossl_mngw="mingw64" || readonly ossl_mngw="mingw"
|
||||
pushd "${OSSL_DIR}"
|
||||
patch -p1 -b < "${BASE_DIR}/patch/quictls_x86_fix.diff"
|
||||
./Configure no-hw no-shared no-engine no-capieng no-dso zlib ${ossl_flag} -static -march=${MY_MARCH} -mtune=${MY_MTUNE} -DNDEBUG -D_WIN32_WINNT=0x0501 -I"${DEPS_DIR}/include" -L"${DEPS_DIR}/lib" --prefix="${DEPS_DIR}" --libdir="lib" ${ossl_mngw}
|
||||
make build_libs && make install_dev
|
||||
popd
|
||||
|
28
patch/quictls_x86_fix.diff
Normal file
28
patch/quictls_x86_fix.diff
Normal file
@ -0,0 +1,28 @@
|
||||
crypto/modes/gcm128.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/crypto/modes/gcm128.c b/crypto/modes/gcm128.c
|
||||
index b970209..d4983ce 100644
|
||||
--- a/crypto/modes/gcm128.c
|
||||
+++ b/crypto/modes/gcm128.c
|
||||
@@ -337,9 +337,9 @@ void gcm_ghash_4bit(u64 Xi[2], const u128 Htable[16], const u8 *inp,
|
||||
# endif
|
||||
|
||||
#if defined(GHASH_ASM) || defined(OPENSSL_CPUID_OBJ)
|
||||
-# if defined(__i386) || defined(__i386__) || \
|
||||
+# if defined(__i389) || defined(__i389__) || \
|
||||
defined(__x86_64) || defined(__x86_64__) || \
|
||||
- defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64)
|
||||
+ defined(_M_IX89) || defined(_M_AMD64) || defined(_M_X64)
|
||||
# define GHASH_ASM_X86_OR_64
|
||||
|
||||
void gcm_init_clmul(u128 Htable[16], const u64 Xi[2]);
|
||||
@@ -358,7 +358,7 @@ void gcm_ghash_avx(u64 Xi[2], const u128 Htable[16], const u8 *inp,
|
||||
size_t len);
|
||||
# endif
|
||||
|
||||
-# if defined(__i386) || defined(__i386__) || defined(_M_IX86)
|
||||
+# if defined(__i389) || defined(__i389__) || defined(_M_IX89)
|
||||
# define GHASH_ASM_X86
|
||||
void gcm_gmult_4bit_mmx(u64 Xi[2], const u128 Htable[16]);
|
||||
void gcm_ghash_4bit_mmx(u64 Xi[2], const u128 Htable[16], const u8 *inp,
|
Loading…
x
Reference in New Issue
Block a user