tce-load -i compiletc ffmpeg-dev taglib-dev libsecret-dev libnotify-dev libmpeg2-dev mpg123-dev dav1d-dev desktop-file-utils libmad-dev libsamplerate-dev libarchive-dev libICE-dev [lua-dev]

wget https://download.videolan.org/vlc/3.0.17.4/vlc-3.0.17.4.tar.xz

cd vlc-3.0.17.4

BUILDCC=gcc CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" ./configure --prefix=/usr/local --localstatedir=/var --disable-static --disable-a52 --disable-libva --disable-vpx --enable-wayland [--disable-lua]

[-flto, -fno-rtti fail]

configure: WARNING: No package 'xcb-keysyms' found. Hotkeys will not work
Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
find . -name Makefile -type f -exec sed -i 's/-O3//g' {} \;

make [16m 55.00s]
sudo make install

libvlc configuration
--------------------
version               : 3.0.17.4
system                : linux
architecture          : aarch64
optimizations         : yes
vlc aliases           : cvlc rvlc nvlc
