[vlc-commits] configure: use $host_cpu where applicable

Rémi Denis-Courmont git at videolan.org
Sat Jun 16 20:35:11 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 16 21:34:58 2018 +0300| [a50366bc9702ad4ec0db1e5361bcea8378bf8132] | committer: Rémi Denis-Courmont

configure: use $host_cpu where applicable

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a50366bc9702ad4ec0db1e5361bcea8378bf8132
---

 configure.ac | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3f1d13d208..c96778e04e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,8 +130,8 @@ case "${host_os}" in
 
     dnl Force gcc "-arch" flag
     ARCH_flag=""
-    case "${host}" in
-      i?86*)
+    case "${host_cpu}" in
+      i?86)
         ARCH_flag="-arch i386"
       ;;
       ppc64*)
@@ -140,7 +140,7 @@ case "${host_os}" in
       ppc*)
         ARCH_flag="-arch ppc"
       ;;
-      x86_64*)
+      x86_64)
         ARCH_flag="-arch x86_64"
       ;;
       arm*)
@@ -250,8 +250,8 @@ case "${host_os}" in
         dnl
         dnl NSIS/MSI Installer prefix and WIN64
         dnl
-        case "${host}" in
-            amd64*|x86_64*)
+        case "${host_cpu}" in
+            amd64|x86_64)
                 HAVE_WIN64="1"
                 WINDOWS_ARCH="x64"
                 PROGRAMFILES="PROGRAMFILES64"



More information about the vlc-commits mailing list