From: Ole Streicher Date: Thu, 1 Dec 2016 21:18:56 +0100 Subject: Add SONAME to libastrometry.so --- blind/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/blind/Makefile b/blind/Makefile index 59809ba..1d55c9c 100644 --- a/blind/Makefile +++ b/blind/Makefile @@ -147,7 +147,8 @@ $(ENGINE_LIB): $(ENGINE_OBJS) $(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 @@ install: $(INSTALL_EXECS) $(INSTALL_LIB) done mkdir -p '$(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 -p '$(PY_INSTALL_DIR)' @for x in $(PYTHON_INSTALL); do \