$OpenBSD: patch-build_make_Makefile,v 1.4 2012/08/28 13:04:01 fgsch Exp $ --- build/make/Makefile.orig Fri Jan 27 13:36:39 2012 +++ build/make/Makefile Sun Jan 29 21:11:03 2012 @@ -247,8 +247,7 @@ define so_template # This needs further abstraction for dealing with non-GNU linkers. $(1): $(if $(quiet),@echo " [LD] $$@") - $(qexec)$$(LD) -shared $$(LDFLAGS) \ - -Wl,--no-undefined -Wl,-soname,$$(SONAME) \ + $(qexec)$$(LD) -shared -fPIC $$(LDFLAGS) \ -Wl,--version-script,$$(SO_VERSION_SCRIPT) -o $$@ \ $$(filter %.o,$$?) $$(extralibs) endef @@ -316,7 +315,7 @@ LIBS=$(call enabled,LIBS) .libs: $(LIBS) @touch $@ $(foreach lib,$(filter %_g.a,$(LIBS)),$(eval $(call archive_template,$(lib)))) -$(foreach lib,$(filter %so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH),$(LIBS)),$(eval $(call so_template,$(lib)))) +$(foreach lib,$(filter %so.$(LIBVPX_VERSION),$(LIBS)),$(eval $(call so_template,$(lib)))) INSTALL-LIBS=$(call cond_enabled,CONFIG_INSTALL_LIBS,INSTALL-LIBS) ifeq ($(MAKECMDGOALS),dist)