[lvm-devel] master - makefiles: older gcc needs hint with rpath

Zdenek Kabelac zkabelac at fedoraproject.org
Tue Oct 13 20:04:31 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a91fbe9d27a79b4be7fad72fc7a1ba2a976ecd41
Commit:        a91fbe9d27a79b4be7fad72fc7a1ba2a976ecd41
Parent:        ccc39be053b9a186abc6a020f516ff5f425981d6
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Tue Oct 13 22:02:17 2015 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Tue Oct 13 22:02:17 2015 +0200

makefiles: older gcc needs hint with rpath

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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/scripts/Makefile.in b/scripts/Makefile.in
index f7f672d..bfa0fad 100644
--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -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
 




More information about the lvm-devel mailing list