[vlc-commits] [Git][videolan/vlc][master] cpu: drop MacOS PPC support

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Wed Feb 23 08:16:19 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
06ab28f8 by Rémi Denis-Courmont at 2022-02-23T08:00:57+00:00
cpu: drop MacOS PPC support

This requires MacOS 10.5 or less, which was dropped in VLC 2.1.0.

- - - - -


2 changed files:

- configure.ac
- src/misc/cpu.c


Changes:

=====================================
configure.ac
=====================================
@@ -1742,16 +1742,6 @@ AS_IF([test "${enable_altivec}" = "yes"], [
     have_altivec="yes"
   ])
   AC_CHECK_HEADERS([altivec.h])
-
-  VLC_SAVE_FLAGS
-  LDFLAGS="${LDFLAGS} -Wl,-framework,vecLib"
-  AC_CACHE_CHECK([if linker needs -framework vecLib],
-    [ac_cv_ld_altivec],
-    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[ac_cv_ld_altivec=yes],[ac_cv_ld_altivec=no])])
-  VLC_RESTORE_FLAGS
-  AS_IF([test "${ac_cv_ld_altivec}" != "no"], [
-    VLC_ADD_LIBS([libvlccore],[-Wl,-framework,vecLib])
-  ])
 ])
 AC_SUBST([ALTIVEC_CFLAGS])
 AM_CONDITIONAL([HAVE_ALTIVEC], [test "$have_altivec" = "yes"])


=====================================
src/misc/cpu.c
=====================================
@@ -215,12 +215,8 @@ out:
 #elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __powerpc64__ ) \
     || defined( __ppc64__ )
 
-#   if defined(__APPLE__) || defined(__OpenBSD__)
 #   if defined(__OpenBSD__)
     int selectors[2] = { CTL_MACHDEP, CPU_ALTIVEC };
-#   else
-    int selectors[2] = { CTL_HW, HW_VECTORUNIT };
-#   endif
     int i_has_altivec = 0;
     size_t i_length = sizeof( i_has_altivec );
     int i_error = sysctl( selectors, 2, &i_has_altivec, &i_length, NULL, 0);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/06ab28f823fa30b231bf8035a82e465c12162b96

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/06ab28f823fa30b231bf8035a82e465c12162b96
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list