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