$OpenBSD: patch-src_Makefile,v 1.5 2021/01/03 12:43:49 jasper Exp $

-Bsymbolic-functions is not supported by ld.bfd

Index: src/Makefile
--- src/Makefile.orig
+++ src/Makefile
@@ -218,7 +218,11 @@ else
 EXT = so
 VERSION_EXT = $(EXT).$(API_MAJOR)
 AR_EXT = a
+ifeq ($(LD_IS_LLD),1)
 $(LIBNAME)_LDFLAGS += -Wl,-Bsymbolic-functions,-soname,lib$(LIBNAME).$(VERSION_EXT)
+else
+$(LIBNAME)_LDFLAGS += -Wl,-soname,lib$(LIBNAME).$(VERSION_EXT)
+endif
 UNICORN_CFLAGS += -fvisibility=hidden
 endif
 
