1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2015-10-13 22:02:17 +02:00
parent ccc39be053
commit a91fbe9d27

View File

@ -25,6 +25,9 @@ include $(top_builddir)/make.tmpl
ifeq ("@APPLIB@", "yes") ifeq ("@APPLIB@", "yes")
DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so DEPLIBS += $(top_builddir)/liblvm/liblvm2app.so $(top_builddir)/libdm/libdevmapper.so
LDFLAGS += -L$(top_builddir)/liblvm LDFLAGS += -L$(top_builddir)/liblvm
ifeq ("@DMEVENTD@", "yes")
LDFLAGS += -Wl,-rpath,$(top_builddir)/daemons/dmeventd
endif
LVMLIBS = @LVM2APP_LIB@ -ldevmapper LVMLIBS = @LVM2APP_LIB@ -ldevmapper
endif endif