-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