diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-10-13 22:02:17 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-10-13 22:02:17 +0200 |
commit | a91fbe9d27a79b4be7fad72fc7a1ba2a976ecd41 (patch) | |
tree | 389ab2edc21ffcfeadd5f93eb8764720a0b6108d | |
parent | ccc39be053b9a186abc6a020f516ff5f425981d6 (diff) | |
download | lvm2-a91fbe9d27a79b4be7fad72fc7a1ba2a976ecd41.tar.gz |
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.
-rw-r--r-- | scripts/Makefile.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Makefile.in b/scripts/Makefile.in index f7f672d3d..bfa0fad23 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 |