Blame astrometry-Add-SONAME-to-libastrometry.so.patch

23dea7f
From: Ole Streicher <olebole@debian.org>
23dea7f
Date: Thu, 1 Dec 2016 21:18:56 +0100
23dea7f
Subject: Add SONAME to libastrometry.so
23dea7f
23dea7f
---
23dea7f
 blind/Makefile | 7 ++++---
23dea7f
 1 file changed, 4 insertions(+), 3 deletions(-)
23dea7f
23dea7f
diff --git a/blind/Makefile b/blind/Makefile
23dea7f
index 59809ba..1d55c9c 100644
23dea7f
--- a/blind/Makefile
23dea7f
+++ b/blind/Makefile
23dea7f
@@ -147,7 +147,8 @@ $(ENGINE_LIB): $(ENGINE_OBJS)
23dea7f
 	$(RANLIB) $@
23dea7f
 
23dea7f
 $(ENGINE_SO): $(ENGINE_OBJS) $(SLIB)
23dea7f
-	$(CC) $(LDFLAGS) $(SHAREDLIBFLAGS) -o $@ $^ $(LDLIBS)
23dea7f
+	$(CC) $(LDFLAGS) $(SHAREDLIBFLAGS) -Wl,-soname,$@.0 -o $@.0 $^ $(LDLIBS)
23dea7f
+	ln -s  $@.0 $@
23dea7f
 
23dea7f
 # old and miscellaneous executables that aren't part of the pipeline.
23dea7f
 OLDEXECS := plotquads rawstartree checkquads
23dea7f
@@ -232,8 +233,8 @@ install: $(INSTALL_EXECS) $(INSTALL_LIB)
23dea7f
 	done
23dea7f
 	mkdir -p '$(LIB_INSTALL_DIR)'
23dea7f
 	@for x in $(INSTALL_LIB); do \
23dea7f
-		echo cp $$x '$(LIB_INSTALL_DIR)'; \
23dea7f
-		cp $$x '$(LIB_INSTALL_DIR)'; \
23dea7f
+		echo cp -d $$x* '$(LIB_INSTALL_DIR)'; \
23dea7f
+		cp -d $$x* '$(LIB_INSTALL_DIR)'; \
23dea7f
 	done
23dea7f
 	mkdir -p '$(PY_INSTALL_DIR)'
23dea7f
 	@for x in $(PYTHON_INSTALL); do \