autotools: Don't link udev into everything
[petitboot] / discover / Makefile.am
index 9e922fe959b0dc9e212e6b8634ff186249347763..0dc5e898ab865b2734f36c30f3dfb5080e0e844c 100644 (file)
@@ -57,10 +57,9 @@ discover_pb_discover_SOURCES = \
        discover/pxe-parser.c
 
 discover_pb_discover_LDADD = \
+       discover/grub2/grub2-parser.ro \
        $(core_lib) \
-       discover/grub2/grub2-parser.ro
-
-discover_pb_discover_LDFLAGS = -ludev
+       $(UDEV_LIBS)
 
 discover_pb_discover_CPPFLAGS = \
        $(AM_CPPFLAGS) \