Skip to content
Snippets Groups Projects
Commit 06ab28f8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Hugo Beauzée-Luyssen
Browse files

cpu: drop MacOS PPC support

This requires MacOS 10.5 or less, which was dropped in VLC 2.1.0.
parent 62d0a882
No related branches found
No related tags found
1 merge request!1456cpu: drop MacOS PPC support
Pipeline #193397 passed with stage
in 18 minutes and 9 seconds
......@@ -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"])
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment