From fd22d5debba8a2ed97de8f015aea1f120e5dc80d Mon Sep 17 00:00:00 2001 From: Thomas Hurst Date: Thu, 5 Oct 2023 18:23:51 +0100 Subject: [PATCH] YJIT: Build on BSD platforms with GNU make (#8591) --- yjit/yjit.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/yjit/yjit.mk b/yjit/yjit.mk index 16d7736714..0a4e9c3b6e 100644 --- a/yjit/yjit.mk +++ b/yjit/yjit.mk @@ -42,11 +42,10 @@ endif yjit-libobj: $(YJIT_LIBOBJ) -# Note, BSD handling is in yjit/not_gmake.mk YJIT_LIB_SYMBOLS = $(YJIT_LIBS:.a=).symbols $(YJIT_LIBOBJ): $(YJIT_LIBS) $(ECHO) 'partial linking $(YJIT_LIBS) into $@' -ifneq ($(findstring linux,$(target_os)),) +ifneq ($(or $(findstring linux,$(target_os)),$(findstring bsd,$(target_os))),$(findstring dragonfly,$(target_os))),) $(Q) $(LD) -r -o $@ --whole-archive $(YJIT_LIBS) -$(Q) $(OBJCOPY) --wildcard --keep-global-symbol='$(SYMBOL_PREFIX)rb_*' $(@) else ifneq ($(findstring darwin,$(target_os)),)