summaryrefslogtreecommitdiff
path: root/libopeniscsiusr/Makefile
diff options
context:
space:
mode:
authorPatrick McCarty <patrick.mccarty@intel.com>2018-05-29 17:37:22 -0700
committerPatrick McCarty <patrick.mccarty@intel.com>2018-05-29 17:56:40 -0700
commitcd2b32e4f8c9e095c5dfbb232097e1a3e5fa359c (patch)
treec727a953fdf8ce93eda6fdd001716a133696938c /libopeniscsiusr/Makefile
parent49e4af6c5869780b95ae4bd6941c918b2c721e0b (diff)
downloadopen-iscsi-cd2b32e4f8c9e095c5dfbb232097e1a3e5fa359c.tar.gz
Fix installation of libopeniscsiusr symlinks
The install(1) command dereferences symlinks when copying to the target location, so use an alternate approach to create symlinks from scratch instead. Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
Diffstat (limited to 'libopeniscsiusr/Makefile')
-rw-r--r--libopeniscsiusr/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile
index 754ffb7..e510d9c 100644
--- a/libopeniscsiusr/Makefile
+++ b/libopeniscsiusr/Makefile
@@ -71,8 +71,8 @@ install: $(LIBS) $(LIBS_MAJOR)
$(INSTALL) -d $(DESTDIR)/$(LIB_DIR)/
$(INSTALL) -d $(DESTDIR)/$(INCLUDE_DIR)/
$(INSTALL) $(LIBS) $(DESTDIR)$(LIB_DIR)/
- $(INSTALL) $(DEVLIB) $(DESTDIR)$(LIB_DIR)/
- $(INSTALL) $(LIBS_MAJOR) $(DESTDIR)$(LIB_DIR)/
+ ln -sf $(LIBS) $(DESTDIR)/$(LIB_DIR)/$(DEVLIB)
+ ln -sf $(LIBS) $(DESTDIR)/$(LIB_DIR)/$(LIBS_MAJOR)
$(INSTALL) $(HEADERS) $(DESTDIR)$(INCLUDE_DIR)/
$(INSTALL) -m 644 -D $(PKGFILE).in $(DESTDIR)$(PKGCONF_DIR)/$(PKGFILE)
perl -i -pe 's|__VERSION__|$(LIBNVME_VERSION)|g' \