From 88f10ae555fa4be4e6f50b1cc958b3276889904e Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 5 Jun 2014 14:21:17 +0200 Subject: [PATCH] Check for libudev as plain lib as well. --- Makefile | 1 + qb/config.libs.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 009238912e..89399186c1 100644 --- a/Makefile +++ b/Makefile @@ -94,6 +94,7 @@ endif ifneq ($(findstring Linux,$(OS)),) LIBS += -lrt + JOYCONFIG_LIBS += -lrt OBJ += input/linuxraw_input.o input/linuxraw_joypad.o JOYCONFIG_OBJ += tools/linuxraw_joypad.o endif diff --git a/qb/config.libs.sh b/qb/config.libs.sh index b0e8f0f359..a7aa4243ab 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -255,6 +255,10 @@ else fi check_pkgconf UDEV libudev +if [ "$HAVE_UDEV" = "no" ]; then + HAVE_UDEV=auto && check_lib UDEV "-ludev" + [ "$HAVE_UDEV" = "yes" ] && UDEV_LIBS=-ludev +fi check_lib STRL -lc strlcpy check_lib STRCASESTR -lc strcasestr