openbsd-ports/multimedia/libvpx/patches/patch-build_make_Makefile
fgsch 0026897e38 revert part of the previous commit bringing the removal of
-Wl,--no-undefined back as it does not build otherwise.
discussed with jasper@ and sthen@
2012-08-28 13:04:01 +00:00

23 lines
1.0 KiB
Plaintext

$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)