1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Set LD_LIBRARY_PATH in init.sh, as it is required to run dmsetup now as well,

which otherwise picks up the system version of libdevmapper, which is a pretty
bad idea.
This commit is contained in:
Petr Rockai 2008-11-07 01:30:03 +00:00
parent 5b45c0728f
commit b39e32266a

View File

@ -34,6 +34,7 @@ init.sh: Makefile.in .bin-dir-stamp
echo 'abs_top_builddir=$(abs_top_builddir)' >> $@-t
echo 'abs_top_srcdir=$(abs_top_builddir)' >> $@-t
echo 'PATH=$(abs_top_builddir)/test/bin:$$PATH' >> $@-t
echo 'export LD_LIBRARY_PATH="$(abs_top_builddir)/libdm:$(abs_top_builddir)/dmeventd"' >> $@-t
echo 'abs_srcdir=$(abs_srcdir)' >> $@-t
echo 'abs_builddir=$(abs_builddir)' >> $@-t
echo 'export PATH' >> $@-t
@ -63,7 +64,6 @@ $(T): init.sh
lvm-wrapper: Makefile
rm -f $@-t $@
echo '#!/bin/sh' > $@-t
echo 'export LD_LIBRARY_PATH="$(abs_top_builddir)/libdm:$(abs_top_builddir)/dmeventd"' >> $@-t
echo 'cmd=$$(echo ./$$0|sed "s,.*/,,")' >> $@-t
echo 'test "$$cmd" = lvm &&' >> $@-t
echo 'exec "$(abs_top_builddir)/tools/lvm" "$$@"' >> $@-t