Merge pull request #5754 from orbea/pkgconf

qb: Fix undefined udev references without pkg-config
This commit is contained in:
Twinaphex 2017-11-23 17:08:20 +01:00 committed by GitHub
commit 3944d77ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,7 +425,10 @@ if [ "$HAVE_UDEV" != "no" ]; then
check_pkgconf UDEV libudev
if [ "$HAVE_UDEV" = "no" ]; then
HAVE_UDEV=auto; check_lib '' UDEV "-ludev"
[ "$HAVE_UDEV" = "yes" ] && UDEV_LIBS=-ludev
if [ "$HAVE_UDEV" = "yes" ]; then
UDEV_LIBS='-ludev'
PKG_CONF_USED="$PKG_CONF_USED UDEV"
fi
fi
fi