From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 2/4] multipath-tools: install libmultipath.so in $syslibdir Date: Sun, 19 Apr 2009 18:36:20 -0400 Message-ID: <20090419223620.GA9385@redhat.com> References: <1240006080-27892-1-git-send-email-snitzer@redhat.com> <1240006080-27892-3-git-send-email-snitzer@redhat.com> <1240179025.25083.2.camel@plop> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1240179025.25083.2.camel@plop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids On Sun, Apr 19 2009 at 6:10pm -0400, Christophe Varoqui wrote: > Le vendredi 17 avril 2009 =E0 18:07 -0400, Mike Snitzer a =E9crit : > > Allows libmultipath.so to be installed in the proper lib dir > > (e.g. /lib64). $libdir is already used for /lib/multipath > >=20 >=20 > 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=3D/lib64 libdir=3D/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(-) > >=20 > > diff --git a/Makefile.inc b/Makefile.inc > > index 3e5bca0..1fe9782 100644 > > --- a/Makefile.inc > > +++ b/Makefile.inc > > @@ -21,6 +21,7 @@ multipathdir =3D $(TOPDIR)/libmultipath > > mandir =3D $(prefix)/usr/share/man/man8 > > man5dir =3D $(prefix)/usr/share/man/man5 > > rcdir =3D $(prefix)/etc/init.d > > +syslibdir =3D $(prefix)/lib > > libdir =3D $(prefix)/lib/multipath > > =20 > > GZIP =3D /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) > > =20 > > 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) > > =20 > > uninstall: > > - rm -f $(DESTDIR)$(prefix)/lib/$(LIBS) > > + rm -f $(DESTDIR)$(syslibdir)/$(LIBS) > > =20 > > clean: > > rm -f core *.a *.o *.gz *.so >=20 > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel