summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-08-01 08:40:36 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2012-08-01 08:42:49 +0200
commitc6cc871df845ea4c810122a59606c3c593d15772 (patch)
tree1c2612518a5cda7b9091826bf0292515c2f7a47d
parentfa68466e904568d054f0b0cf5fdab6499cb47998 (diff)
downloadlvm2-c6cc871df845ea4c810122a59606c3c593d15772.tar.gz
lvm2-c6cc871df845ea4c810122a59606c3c593d15772.tar.xz
lvm2-c6cc871df845ea4c810122a59606c3c593d15772.zip
make: use proper libs to make scripts subdir
-rw-r--r--scripts/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/Makefile.in b/scripts/Makefile.in
index 40396b04..2298f0c7 100644
--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -21,8 +21,13 @@ TARGETS = lvm2_activation_generator_systemd_red_hat
include $(top_builddir)/make.tmpl
DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
+LDFLAGS += -L$(top_builddir)/liblvm
LVMLIBS = @LVM2APP_LIB@ -ldevmapper
+ifeq ("@DMEVENTD@", "yes")
+ LVMLIBS += -ldevmapper-event
+endif
+
SCRIPTS = lvmdump.sh lvmconf.sh vgimportclone.sh
ifeq ("@FSADM@", "yes")
@@ -67,7 +72,7 @@ ifeq ("@BUILD_CMIRRORD@", "yes")
endif
lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(DEPLIBS)
- $(CC) -o $@ $(OBJECTS) $(LVMLIBS)
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LVMLIBS)
install_systemd_generators:
$(INSTALL_DIR) $(systemd_generator_dir)