$OpenBSD: patch-config_rules_mk,v 1.2 2009/11/27 21:18:52 naddy Exp $ --- config/rules.mk.orig Mon Nov 2 22:42:44 2009 +++ config/rules.mk Wed Nov 25 22:04:30 2009 @@ -607,6 +607,12 @@ endif endif endif +ifeq ($(OS_ARCH),OpenBSD) +ifdef IS_COMPONENT +EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic +endif +endif + ifeq ($(OS_ARCH),Linux) ifneq (,$(filter mips mipsel,$(OS_TEST))) ifeq ($(MODULE),layout)