docs: Update Clear Linux docs for 1.3.x.

x264 url has changed, recent Clear has LDFLAGS populated properly.
This commit is contained in:
Bradley Sepos 2020-06-16 15:12:54 -04:00
parent b8c809c01d
commit 03bc9a7004
No known key found for this signature in database
GPG Key ID: DEADE2F57D42D9C7

View File

@ -69,10 +69,9 @@ Build and install the dependencies not available in the base repository.
cd ..
# x264
curl -LO https://download.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
mkdir x264-snapshot-stable
tar -xf last_stable_x264.tar.bz2 --directory x264-snapshot-stable --strip-components=1
cd x264-snapshot-stable
curl -LO https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2
tar -xf x264-master.tar.bz2
cd x264-master
./configure --enable-shared --enable-static --enable-lto --enable-pic --enable-strip
make -j$(nproc)
sudo make install
@ -80,10 +79,10 @@ Build and install the dependencies not available in the base repository.
# make shared libraries findable
export CFLAGS="${CFLAGS:-} -I/usr/local/include"
export LDFLAGS="${LDFLAGS:-} -L/usr/local/lib"
echo 'export CFLAGS="${CFLAGS:-} -I/usr/local/include"' >> "${HOME}/.bashrc"
echo 'export LDFLAGS="${LDFLAGS:-} -L/usr/local/lib"' >> "${HOME}/.bashrc"
if ! grep '\/usr\/local\/lib' /etc/ld.so.conf >/dev/null 2>&1; then
export LDFLAGS="${LDFLAGS:-} -L/usr/local/lib"
echo 'export LDFLAGS="${LDFLAGS:-} -L/usr/local/lib"' >> "${HOME}/.bashrc"
echo '/usr/local/lib' | sudo tee --append /etc/ld.so.conf
sudo ldconfig
fi