For various reasons you’ll want to do that.
For me it was VLC locking up when watching IPTV from a DVB>IP hardware with v3.0.21.
And with v3.0.20 it would have extremely high CPU usage which went away when recompiling.
Only on Archlinux.
Something in their process is funky.
Anyhow let’s go.
First, enable optimizations for your CPU, in /etc/makepkg.conf
|
#-- Compiler and Linker Flags # -march (or -mcpu) builds exclusively for an architecture # -mtune optimizes for an architecture, but builds for whole processor family CPPFLAGS="-D_FORTIFY_SOURCE=2" CFLAGS="-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt" CXXFLAGS="-march=native -mtune=native -O3 -pipe -fstack-protector-strong -fno-plt" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" #-- Make Flags: change this for DistCC/SMP systems MAKEFLAGS="-j32" # number of logical CPUs on your machine #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" |
clone the repo and build
|
git clone https://gitlab.archlinux.org/archlinux/packaging/packages/vlc.git cd vlc sudo pacman -Rdd ffmpeg lua52 makepkg -si sudo pacman -Sd ffmpeg lua52 |
uninstalling ffmpeg and lua52 is required, else there are build errors.
after building, reinstall them again
optionally, if you get missing keys,