[vlc-devel] [PATCH 2/3] contrib: Set HAVE_WIN64 for aarch64 as well

Martin Storsjö martin at martin.st
Thu Jan 4 22:17:28 CET 2018


Adjust some existing uses of this variable to check for HAVE_WIN32
+ x86_64 instead.
---
 contrib/src/ffmpeg/rules.mak | 2 +-
 contrib/src/gcrypt/rules.mak | 4 +++-
 contrib/src/gnutls/rules.mak | 2 +-
 contrib/src/main.mak         | 3 +++
 contrib/src/theora/rules.mak | 4 +++-
 5 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
index b9f8fc8..0fc063a 100644
--- a/contrib/src/ffmpeg/rules.mak
+++ b/contrib/src/ffmpeg/rules.mak
@@ -187,7 +187,7 @@ else
 FFMPEGCONF += --disable-dxva2
 endif
 
-ifdef HAVE_WIN64
+ifeq ($(ARCH),x86_64)
 FFMPEGCONF += --cpu=athlon64 --arch=x86_64
 else
 ifeq ($(ARCH),i386) # 32bits intel
diff --git a/contrib/src/gcrypt/rules.mak b/contrib/src/gcrypt/rules.mak
index 9f78f1c..57736d5 100644
--- a/contrib/src/gcrypt/rules.mak
+++ b/contrib/src/gcrypt/rules.mak
@@ -34,9 +34,11 @@ GCRYPT_CONF = \
 	--enable-pubkey-ciphers=dsa,rsa,ecc \
 	--disable-docs
 
-ifdef HAVE_WIN64
+ifdef HAVE_WIN32
+ifeq ($(ARCH),x86_64)
 GCRYPT_CONF += --disable-asm --disable-padlock-support
 endif
+endif
 ifdef HAVE_IOS
 GCRYPT_EXTRA_CFLAGS = -fheinous-gnu-extensions
 else
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index a162adf..9cd29be 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -71,7 +71,7 @@ ifdef HAVE_TIZEN
 	GNUTLS_CONF += --with-default-trust-store-dir=/etc/ssl/certs/
 endif
 ifdef HAVE_WINSTORE
-ifdef HAVE_WIN64
+ifeq ($(ARCH),x86_64)
 	GNUTLS_CONF += --disable-hardware-acceleration
 endif
 endif
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index e423b16..b20a567 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -44,6 +44,9 @@ ARCH := $(shell $(SRC)/get-arch.sh $(HOST))
 ifeq ($(ARCH)-$(HAVE_WIN32),x86_64-1)
 HAVE_WIN64 := 1
 endif
+ifeq ($(ARCH)-$(HAVE_WIN32),aarch64-1)
+HAVE_WIN64 := 1
+endif
 
 ifdef HAVE_CROSS_COMPILE
 need_pkg = 1
diff --git a/contrib/src/theora/rules.mak b/contrib/src/theora/rules.mak
index f253fdf..a9ca4d1 100644
--- a/contrib/src/theora/rules.mak
+++ b/contrib/src/theora/rules.mak
@@ -39,9 +39,11 @@ endif
 ifdef HAVE_IOS
 THEORACONF += --disable-asm
 endif
-ifdef HAVE_WIN64
+ifdef HAVE_WIN32
+ifeq ($(ARCH),x86_64)
 THEORACONF += --disable-asm
 endif
+endif
 
 DEPS_theora = ogg $(DEPS_ogg)
 
-- 
2.7.4



More information about the vlc-devel mailing list