Commit cf3b8b52 authored by Richard Levitte's avatar Richard Levitte
Browse files

Make sure it's properly detected when there's no version information

at all, and in all other cases, make sure foo.so is linked to
foo.so.{soversion}.
parent 42b06fba
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -80,14 +80,19 @@ LINK_SO= \
	$$ALLSYMSFLAGS $$SHOBJECTS $$NOALLSYMSFLAGS $$LIBDEPS ) && \
  $(SYMLINK_SO); ( $(DEBUG); rm -f lib$(LIBNAME).exp )
SYMLINK_SO=	\
	if [ -n "$$SHLIB_COMPAT"]; then \
	prev=$$SHLIB$$SHLIB_SOVER$$SHLIB_SUFFIX; \
	if [ -n "$$SHLIB_COMPAT"]; then \
		for x in $$SHLIB_COMPAT; do \
			( $(DEBUG); rm -f $$SHLIB$$x$$SHLIB_SUFFIX; \
			  ln -s $$prev $$SHLIB$$x$$SHLIB_SUFFIX ); \
			prev=$$SHLIB$$x$$SHLIB_SUFFIX; \
		done; \
	fi; \
	if [ -n "$$SHLIB_SOVER" ]; then \
		( $(DEBUG); rm -f $$SHLIB$$SHLIB_SUFFIX; \
		  ln -s $$prev $$SHLIB$$SHLIB_SUFFIX ); \
	fi

LINK_SO_A=	SHOBJECTS="lib$(LIBNAME).a $(LIBEXTRAS)"; $(LINK_SO)
LINK_SO_O=	SHOBJECTS="$(LIBEXTRAS)"; $(LINK_SO)
LINK_SO_A_VIA_O=	\