summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b56e40)
raw | patch | inline | side by side (parent: 3b56e40)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 25 May 2016 14:15:32 +0000 (16:15 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 25 May 2016 14:15:32 +0000 (16:15 +0200) |
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index e86d9b9caf1dcfe9c6496239ca8e7fd87be61187..ceb0b30d10ab94ca50093d01d1595e338a2e2bb9 100644 (file)
--- a/configure.ac
+++ b/configure.ac
then
BUILD_WITH_LIBUDEV_CFLAGS="$with_libudev_cflags"
BUILD_WITH_LIBUDEV_LDFLAGS="$with_libudev_ldflags"
+ BUILD_WITH_LIBUDEV_LIBS="-ludev"
AC_SUBST(BUILD_WITH_LIBUDEV_CFLAGS)
AC_SUBST(BUILD_WITH_LIBUDEV_LDFLAGS)
+ AC_SUBST(BUILD_WITH_LIBUDEV_LIBS)
fi
AM_CONDITIONAL(BUILD_WITH_LIBUDEV, test "x$with_libudev" = "xyes")
# }}}
diff --git a/src/Makefile.am b/src/Makefile.am
index a3da05f3addc7913e52018d06ee56e36125c3e34..f11bd5621ce71dacbf7e08521c9d91a8287523fc 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
if BUILD_WITH_LIBUDEV
disk_la_CFLAGS += $(BUILD_WITH_LIBUDEV_CFLAGS)
disk_la_LDFLAGS += $(BUILD_WITH_LIBUDEV_LDFLAGS)
-disk_la_LIBADD += -ludev
+disk_la_LIBADD += $(BULD_WITH_LIBUDEV_LIBS)
endif
if BUILD_WITH_PERFSTAT
disk_la_LIBADD += -lperfstat
smart_la_SOURCES = smart.c
smart_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBATASMART_CPPFLAGS) $(BUILD_WITH_LIBUDEV_CFLAGS)
smart_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBATASMART_LDFLAGS) $(BUILD_WITH_LIBUDEV_LDFLAGS)
-smart_la_LIBADD = $(BUILD_WITH_LIBATASMART_LIBS) -ludev
+smart_la_LIBADD = $(BUILD_WITH_LIBATASMART_LIBS) $(BUILD_WITH_LIBUDEV_LIBS)
endif
endif