]> sourceware.org Git - lvm2.git/commitdiff
makefiles: older gcc needs hint with rpath
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 13 Oct 2015 20:02:17 +0000 (22:02 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 13 Oct 2015 20:02:17 +0000 (22:02 +0200)
gcc 4.3 seems not to be able to find linked library without
specifying -rpath to linker  (plain -L) is not enough.

scripts/Makefile.in

index f7f672d3deb1f60ec8034562712278cb212f6a42..bfa0fad2349ebac8fc796920a8a408d219cc1229 100644 (file)
@@ -25,6 +25,9 @@ include $(top_builddir)/make.tmpl
 ifeq ("@APPLIB@", "yes")
        DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
        LDFLAGS += -L$(top_builddir)/liblvm
+ifeq ("@DMEVENTD@", "yes")
+       LDFLAGS += -Wl,-rpath,$(top_builddir)/daemons/dmeventd
+endif
        LVMLIBS = @LVM2APP_LIB@ -ldevmapper
 endif
 
This page took 0.034402 seconds and 5 git commands to generate.