Fix build in i686 architecture
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
pkgname=ffmpeg-full
|
||||
_srcname=ffmpeg
|
||||
pkgver=3.4
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc='Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://www.ffmpeg.org/'
|
||||
@@ -65,7 +65,7 @@ build() {
|
||||
local _cudasdk='--enable-cuda-sdk'
|
||||
local _cuvid='--enable-cuvid'
|
||||
local _libnpp='--enable-libnpp'
|
||||
local _cflags='--extra-cflags=-I/opt/cuda/include'
|
||||
local _cflags='-I/opt/cuda/include'
|
||||
|
||||
# '-L/usr/lib/nvidia' (for cuda_sdk) needs to be enabled only on
|
||||
# systems with nvidia-340xx-utils or nvidia-304xx-utils
|
||||
@@ -74,7 +74,8 @@ build() {
|
||||
then
|
||||
local _nvidia_340xx_ldflags='-L/usr/lib/nvidia'
|
||||
fi
|
||||
local _ldflags="--extra-ldflags=-L/opt/cuda/lib64 ${_nvidia_340xx_ldflags}"
|
||||
|
||||
local _ldflags="-L/opt/cuda/lib64 ${_nvidia_340xx_ldflags}"
|
||||
local _ldflags="${_ldflags} -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64:/opt/intel/mediasdk/plugins"
|
||||
|
||||
# strictly specifying nvcc path is needed if package is installing
|
||||
@@ -86,8 +87,8 @@ build() {
|
||||
|
||||
./configure \
|
||||
--prefix='/usr' \
|
||||
$_cflags \
|
||||
"$_ldflags" \
|
||||
--extra-cflags="${_cflags}" \
|
||||
--extra-ldflags="${_ldflags}" \
|
||||
\
|
||||
--disable-rpath \
|
||||
--enable-gpl \
|
||||
|
||||
Reference in New Issue
Block a user