Blob Blame Raw
diff -Naur astrometry/blind/Makefile astrometry.new/blind/Makefile
--- astrometry/blind/Makefile	2017-11-17 23:41:01.749922420 +0100
+++ astrometry.new/blind/Makefile	2017-11-17 23:44:09.742825751 +0100
@@ -147,7 +147,8 @@
 	$(RANLIB) $@
 
 $(ENGINE_SO): $(ENGINE_OBJS) $(SLIB)
-	$(CC) $(LDFLAGS) $(SHAREDLIBFLAGS) -o $@ $^ $(LDLIBS)
+	$(CC) $(LDFLAGS) $(SHAREDLIBFLAGS) -Wl,-soname,$@.0 -o $@.0 $^ $(LDLIBS)
+	ln -s  $@.0 $@
 
 # old and miscellaneous executables that aren't part of the pipeline.
 OLDEXECS := plotquads rawstartree checkquads
@@ -232,8 +233,8 @@
 	done
 	$(MKDIR) '$(LIB_INSTALL_DIR)'
 	@for x in $(INSTALL_LIB); do \
-		echo $(CP) $$x '$(LIB_INSTALL_DIR)'; \
-		$(CP) $$x '$(LIB_INSTALL_DIR)'; \
+		echo $(CP) -d $$x* '$(LIB_INSTALL_DIR)'; \
+		$(CP) -d $$x* '$(LIB_INSTALL_DIR)'; \
 	done
 	$(MKDIR) '$(PY_INSTALL_DIR)'
 	@for x in $(PYTHON_INSTALL); do \