32 lines
920 B
Plaintext
32 lines
920 B
Plaintext
$OpenBSD: patch-configure,v 1.5 2018/06/06 12:14:44 kn Exp $
|
|
|
|
The ffmpeg plugin uses functions from libavcodec, so ensure that it is linked
|
|
against libavcodec.
|
|
|
|
Commit 9bde48f1b59d upstream.
|
|
|
|
Also make sure that the ffmpeg.c build test uses -std=gnu99, as does the
|
|
final build.
|
|
|
|
Index: configure
|
|
--- configure.orig
|
|
+++ configure
|
|
@@ -378,7 +378,7 @@ check_aac()
|
|
check_ffmpeg()
|
|
{
|
|
HAVE_FFMPEG_AVCODEC_H=y
|
|
- pkg_config FFMPEG "libavformat" || return $?
|
|
+ pkg_config FFMPEG "libavformat libavcodec" || return $?
|
|
if check_header "libavcodec/avcodec.h" $FFMPEG_CFLAGS
|
|
then
|
|
HAVE_FFMPEG_AVCODEC_H=n
|
|
@@ -387,7 +387,7 @@ check_ffmpeg()
|
|
fi
|
|
# ffmpeg api changes so frequently that it is best to compile the module
|
|
libs="$LDDLFLAGS $FFMPEG_LIBS"
|
|
- cflags="$SOFLAGS $FFMPEG_CFLAGS"
|
|
+ cflags="-std=gnu99 $SOFLAGS $FFMPEG_CFLAGS"
|
|
if test "$HAVE_FFMPEG_AVCODEC_H" = y
|
|
then
|
|
cflags="$cflags -DHAVE_FFMPEG_AVCODEC_H"
|