vlc: fix gcc6 build again

This commit is contained in:
Juergen Buchmueller 2016-11-05 20:38:43 +01:00
parent c1d9ac97b1
commit 90159a7c5c
1 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,7 @@ pre_configure() {
sed -i -e "s|/usr/share/fonts/truetype/freefont|/usr/share/fonts/TTF|" \
-e 's,freetype/ftsynth.h,freetype2/ftsynth.h,' \
modules/text_renderer/freetype.c
_gccver=$(gcc --version|awk '/^gcc / { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
# Apply the gcc6 patches
patch -p1 < ${FILESDIR}/vlc-2.2.4-gcc6_fixes-1.patch
fi