Fix build in i686 architecture

This commit is contained in:
Daniel Bermond
2017-11-09 16:00:01 -02:00
parent 279625e229
commit 4b991aa9e3
2 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8 # Generated by mksrcinfo v8
# Thu Nov 9 17:58:29 UTC 2017 # Thu Nov 9 17:59:50 UTC 2017
pkgbase = ffmpeg-full pkgbase = ffmpeg-full
pkgdesc = Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac) pkgdesc = Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)
pkgver = 3.4 pkgver = 3.4
pkgrel = 3 pkgrel = 4
url = http://www.ffmpeg.org/ url = http://www.ffmpeg.org/
arch = i686 arch = i686
arch = x86_64 arch = x86_64
+6 -5
View File
@@ -8,7 +8,7 @@
pkgname=ffmpeg-full pkgname=ffmpeg-full
_srcname=ffmpeg _srcname=ffmpeg
pkgver=3.4 pkgver=3.4
pkgrel=3 pkgrel=4
pkgdesc='Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)' pkgdesc='Record, convert and stream audio and video (all possible features including nvenc, qsv and libfdk-aac)'
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url='http://www.ffmpeg.org/' url='http://www.ffmpeg.org/'
@@ -65,7 +65,7 @@ build() {
local _cudasdk='--enable-cuda-sdk' local _cudasdk='--enable-cuda-sdk'
local _cuvid='--enable-cuvid' local _cuvid='--enable-cuvid'
local _libnpp='--enable-libnpp' 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 # '-L/usr/lib/nvidia' (for cuda_sdk) needs to be enabled only on
# systems with nvidia-340xx-utils or nvidia-304xx-utils # systems with nvidia-340xx-utils or nvidia-304xx-utils
@@ -74,7 +74,8 @@ build() {
then then
local _nvidia_340xx_ldflags='-L/usr/lib/nvidia' local _nvidia_340xx_ldflags='-L/usr/lib/nvidia'
fi 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" local _ldflags="${_ldflags} -Wl,-rpath -Wl,/opt/intel/mediasdk/lib64:/opt/intel/mediasdk/plugins"
# strictly specifying nvcc path is needed if package is installing # strictly specifying nvcc path is needed if package is installing
@@ -86,8 +87,8 @@ build() {
./configure \ ./configure \
--prefix='/usr' \ --prefix='/usr' \
$_cflags \ --extra-cflags="${_cflags}" \
"$_ldflags" \ --extra-ldflags="${_ldflags}" \
\ \
--disable-rpath \ --disable-rpath \
--enable-gpl \ --enable-gpl \