summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJosh Allmann <joshua.allmann@gmail.com>2014-10-03 12:58:51 -0700
committerLuca Barbato <lu_zero@gentoo.org>2014-10-04 09:10:04 +0200
commit7d97511e13ef30cd99bae0e36400de055b72918d (patch)
tree01fb78d93f53e278516347f00837b11d37ce5091 /configure
parent55f03d872640175a00bfa262da4652b7312b905f (diff)
configure: Add -lrt dependency to avutil's pc file.
This is needed for clock_gettime. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 4513579c2b..d87871eadd 100755
--- a/configure
+++ b/configure
@@ -4053,7 +4053,7 @@ check_func ${malloc_prefix}memalign && enable memalign
check_func ${malloc_prefix}posix_memalign && enable posix_memalign
check_cpp_condition unistd.h "defined(_POSIX_MONOTONIC_CLOCK)" &&
- check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt; }
+ check_func_headers time.h clock_gettime || { check_func_headers time.h clock_gettime -lrt && add_extralibs -lrt && LIBRT="-lrt"; }
check_func fcntl
check_func fork
@@ -4838,7 +4838,7 @@ Cflags: -I\${includedir}
EOF
}
-pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION" "$LIBM"
+pkgconfig_generate libavutil "Libav utility library" "$LIBAVUTIL_VERSION" "$LIBRT $LIBM"
pkgconfig_generate libavcodec "Libav codec library" "$LIBAVCODEC_VERSION" "$extralibs"
pkgconfig_generate libavformat "Libav container format library" "$LIBAVFORMAT_VERSION" "$extralibs"
pkgconfig_generate libavdevice "Libav device handling library" "$LIBAVDEVICE_VERSION" "$extralibs"