ports/devel/py-unicorn/patches/patch-src_Makefile

18 lines
424 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
-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