diff options
author | Richard Yao <ryao@gentoo.org> | 2012-11-23 00:20:15 -0500 |
---|---|---|
committer | Richard Yao <ryao@cs.stonybrook.edu> | 2012-11-23 01:55:28 -0500 |
commit | 3bb4e05ce4a1c9ac1339b451c4c18cfef8bcbeb9 (patch) | |
tree | 2acd2e37eae53b80ed9b933fee254772246eb4ef /src/udev/Makefile.am | |
parent | c4d1ce9b754e6eed60d2625cc4fff224898aa5d5 (diff) |
Permit users to disable module loading support
Inspired by e30431623a7d871da123cc37055ac49abf2c20ea from systemd.
Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'src/udev/Makefile.am')
-rw-r--r-- | src/udev/Makefile.am | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am index 7ceb31951a..2486824e86 100644 --- a/src/udev/Makefile.am +++ b/src/udev/Makefile.am @@ -50,7 +50,6 @@ libudev_core_la_SOURCES = \ udev-builtin-firmware.c \ udev-builtin-hwdb.c \ udev-builtin-input_id.c \ - udev-builtin-kmod.c \ udev-builtin-net_id.c \ udev-builtin-path_id.c \ udev-builtin-usb_id.c \ @@ -104,17 +103,19 @@ libudev_core_la_CFLAGS = \ $(AM_CFLAGS) \ $(BLKID_CFLAGS) -if HAVE_LIBKMOD -libudev_core_la_CFLAGS += $(KMOD_CFLAGS) -endif - libudev_core_la_LIBADD = \ $(top_builddir)/src/libudev/libudev-private.la \ $(BLKID_LIBS) +if HAVE_MODULES +libudev_core_la_SOURCES += \ + udev-builtin-kmod.c + if HAVE_LIBKMOD +libudev_core_la_CFLAGS += $(KMOD_CFLAGS) libudev_core_la_LIBADD += $(KMOD_LIBS) endif +endif if HAVE_ACL libudev_core_la_SOURCES += \ |