[dm-devel] Re: [PATCH 2/4] multipath-tools: install libmultipath.so in $syslibdir

Mike Snitzer snitzer at redhat.com
Sun Apr 19 22:36:20 UTC 2009


On Sun, Apr 19 2009 at  6:10pm -0400,
Christophe Varoqui <christophe.varoqui at free.fr> wrote:

> Le vendredi 17 avril 2009 à 18:07 -0400, Mike Snitzer a écrit :
> > Allows libmultipath.so to be installed in the proper lib dir
> > (e.g. /lib64).  $libdir is already used for /lib/multipath
> > 
> 
> Mike,
> am I missing something ... I don't the lib/lib64 switching code.

The standard install would still just place libmultipath.so in /lib but
this patch exposes the ability to override the default e.g.:
make install syslibdir=/lib64 libdir=/lib64/multipath

The path checker and prioritizer modules would get installed in
/lib64/multipath and libmultipath.so in /lib64


> > ---
> >  Makefile.inc          |    1 +
> >  libmultipath/Makefile |    6 +++---
> >  2 files changed, 4 insertions(+), 3 deletions(-)
> > 
> > diff --git a/Makefile.inc b/Makefile.inc
> > index 3e5bca0..1fe9782 100644
> > --- a/Makefile.inc
> > +++ b/Makefile.inc
> > @@ -21,6 +21,7 @@ multipathdir = $(TOPDIR)/libmultipath
> >  mandir      = $(prefix)/usr/share/man/man8
> >  man5dir     = $(prefix)/usr/share/man/man5
> >  rcdir	    = $(prefix)/etc/init.d
> > +syslibdir   = $(prefix)/lib
> >  libdir	    = $(prefix)/lib/multipath
> >  
> >  GZIP        = /bin/gzip -9 -c
> > diff --git a/libmultipath/Makefile b/libmultipath/Makefile
> > index 35cb911..503223d 100644
> > --- a/libmultipath/Makefile
> > +++ b/libmultipath/Makefile
> > @@ -26,12 +26,12 @@ $(LIBS): $(OBJS)
> >  	$(CC) $(SHARED_FLAGS) -Wl,-soname,$@ $(CFLAGS) -o $@ $(OBJS)
> >  
> >  install:
> > -	$(INSTALL_PROGRAM) -d $(DESTDIR)$(prefix)/lib
> > -	$(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(prefix)/lib/$(LIBS)
> > +	$(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir)
> > +	$(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(syslibdir)/$(LIBS)
> >  	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir)
> >  
> >  uninstall:
> > -	rm -f $(DESTDIR)$(prefix)/lib/$(LIBS)
> > +	rm -f $(DESTDIR)$(syslibdir)/$(LIBS)
> >  
> >  clean:
> >  	rm -f core *.a *.o *.gz *.so
> 
> --
> dm-devel mailing list
> dm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel




More information about the dm-devel mailing list