mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
#3722: Disable GZIP in native compress library (no longer requires PCLMUL)
This commit is contained in:
parent
6b612302e1
commit
cd56fb32c2
@ -8,7 +8,7 @@ echo "Compiling mbedtls"
|
|||||||
(cd mbedtls && CFLAGS="-fPIC -I$CWD/src/main/c -DMBEDTLS_USER_CONFIG_FILE='<mbedtls_custom_config.h>'" make no_test)
|
(cd mbedtls && CFLAGS="-fPIC -I$CWD/src/main/c -DMBEDTLS_USER_CONFIG_FILE='<mbedtls_custom_config.h>'" make no_test)
|
||||||
|
|
||||||
echo "Compiling zlib"
|
echo "Compiling zlib"
|
||||||
(cd zlib && CFLAGS=-fPIC ./configure --static && make)
|
(cd zlib && CFLAGS="-fPIC -DNO_GZIP" ./configure --static && make)
|
||||||
|
|
||||||
CC="gcc"
|
CC="gcc"
|
||||||
CFLAGS="-c -fPIC -O3 -Wall -Werror -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux/"
|
CFLAGS="-c -fPIC -O3 -Wall -Werror -I$JAVA_HOME/include/ -I$JAVA_HOME/include/linux/"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Header to check for SSE 4.2 support in compression natives
|
// Header to check for SSE 2, SSSE 3, and SSE 4.2 support in compression natives
|
||||||
// GCC only!
|
// GCC only!
|
||||||
|
|
||||||
#ifndef _INCLUDE_CPUID_HELPER_H
|
#ifndef _INCLUDE_CPUID_HELPER_H
|
||||||
@ -8,12 +8,9 @@
|
|||||||
#include <cpuid.h>
|
#include <cpuid.h>
|
||||||
|
|
||||||
static inline bool checkCompressionNativesSupport() {
|
static inline bool checkCompressionNativesSupport() {
|
||||||
unsigned int eax;
|
unsigned int eax, ebx, ecx, edx;
|
||||||
unsigned int ebx;
|
|
||||||
unsigned int ecx;
|
|
||||||
unsigned int edx;
|
|
||||||
if(__get_cpuid(1, &eax, &ebx, &ecx, &edx)) {
|
if(__get_cpuid(1, &eax, &ebx, &ecx, &edx)) {
|
||||||
return (ecx & bit_PCLMUL) != 0 && (ecx & bit_SSE4_2) != 0;
|
return (edx & bit_SSE2) != 0 && (ecx & bit_SSSE3) != 0 && (ecx & bit_SSE4_2) != 0;
|
||||||
}else {
|
}else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user