debuggers.hg

changeset 22901:923e60b7318c

tools/Makefiles: install libvhd and libblktap with INSTALL_PROG

Shared libraries should be executable.

(rpm (4.9.0) doesn't automatically supply a "provides" entry for a
library unless it is executable. Non-executable libraries can cause
other trouble too.)

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Michael Young <m.a.young@durham.ac.uk>
date Tue Feb 01 19:19:58 2011 +0000 (2011-02-01)
parents b84f33452d43
children 18807b89083d
files tools/blktap/lib/Makefile tools/blktap2/vhd/lib/Makefile
line diff
     1.1 --- a/tools/blktap/lib/Makefile	Tue Feb 01 19:18:42 2011 +0000
     1.2 +++ b/tools/blktap/lib/Makefile	Tue Feb 01 19:19:58 2011 +0000
     1.3 @@ -36,7 +36,7 @@ all: $(LIB)
     1.4  install: all
     1.5  	$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
     1.6  	$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
     1.7 -	$(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIBDIR)
     1.8 +	$(INSTALL_PROG) $(LIB) $(DESTDIR)$(LIBDIR)
     1.9  	ln -sf libblktap.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libblktap.so.$(MAJOR)
    1.10  	ln -sf libblktap.so.$(MAJOR) $(DESTDIR)$(LIBDIR)/libblktap.so
    1.11  	$(INSTALL_DATA) blktaplib.h $(DESTDIR)$(INCLUDEDIR)
     2.1 --- a/tools/blktap2/vhd/lib/Makefile	Tue Feb 01 19:18:42 2011 +0000
     2.2 +++ b/tools/blktap2/vhd/lib/Makefile	Tue Feb 01 19:19:58 2011 +0000
     2.3 @@ -63,7 +63,7 @@ libvhd.a: $(LIB-OBJS)
     2.4  
     2.5  install: all
     2.6  	$(INSTALL_DIR) -p $(DESTDIR)$(INST-DIR)
     2.7 -	$(INSTALL_DATA) $(LIBVHD) $(DESTDIR)$(INST-DIR)
     2.8 +	$(INSTALL_PROG) $(LIBVHD) $(DESTDIR)$(INST-DIR)
     2.9  	ln -sf libvhd.so.$(LIBVHD-MAJOR).$(LIBVHD-MINOR) $(DESTDIR)$(INST-DIR)/libvhd.so.$(LIBVHD-MAJOR)
    2.10  	ln -sf libvhd.so.$(LIBVHD-MAJOR) $(DESTDIR)$(INST-DIR)/libvhd.so
    2.11