]> git.pld-linux.org Git - packages/libargon2.git/commitdiff
make symlink patch install re-entrant auto/th/libargon2-20161029-1
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 23 Aug 2017 06:26:24 +0000 (09:26 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 23 Aug 2017 06:28:18 +0000 (09:28 +0300)
also fixes .so being installed as file, not symlink

makefile.patch

index 5a80304e4553372e37d70b18fc43703dfcc3ad28..cd5e77273f45fd6376b60b8b1ae0f8353101c48d 100644 (file)
        SRC += src/opt.c
  endif
  
-@@ -87,8 +87,10 @@
+@@ -87,5 +87,6 @@
  endif
  
  LIB_SH := lib$(LIB_NAME).$(LIB_EXT)
 +LIB_SH_VERSION := $(LIB_SH).0
  LIB_ST := lib$(LIB_NAME).a
  LIBRARIES = $(LIB_SH) $(LIB_ST)
-+INSTALL_LIBRARIES = $(LIBRARIES) $(LIB_SH_VERSION)
- HEADERS = include/argon2.h
- INSTALL = install
-@@ -105,7 +107,7 @@
+@@ -105,7 +106,7 @@
  
  .PHONY: clean dist format $(GENKAT) all install
  
  libs: $(LIBRARIES)
  
  $(RUN):               $(SRC) $(SRC_RUN)
-@@ -154,8 +156,10 @@
- install: $(RUN) libs
-+      mv $(LIB_SH) $(LIB_SH_VERSION)
-+      ln -sf $(LIB_SH_VERSION) $(LIB_SH)
-       $(INSTALL) -d $(INST_INCLUDE)
-       $(INSTALL) $(HEADERS) $(INST_INCLUDE)
-       $(INSTALL) -d $(INST_LIBRARY)
--      $(INSTALL) $(LIBRARIES) $(INST_LIBRARY)
-+      $(INSTALL) $(INSTALL_LIBRARIES) $(INST_LIBRARY)
+@@ -160,2 +161,6 @@
        $(INSTALL) -d $(INST_BINARY)
        $(INSTALL) $(RUN) $(INST_BINARY)
++      # rename library to match SONAME
++      mv $(INST_LIBRARY)/$(LIB_SH) $(INST_LIBRARY)/$(LIB_SH_VERSION)
++      # keep symlink for development
++      ln -sf $(LIB_SH_VERSION) $(INST_LIBRARY)/$(LIB_SH)
This page took 0.110143 seconds and 4 git commands to generate.