aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hurst <tom@hur.st>2023-10-05 18:23:51 +0100
committerGitHub <noreply@github.com>2023-10-05 13:23:51 -0400
commitfd22d5debba8a2ed97de8f015aea1f120e5dc80d (patch)
tree1bbb099889a093fc538b3c639ba53fd31e9e1dbd
parent8d8fe5435567553a1b3381103585ed3214fbee81 (diff)
downloadruby-fd22d5debba8a2ed97de8f015aea1f120e5dc80d.tar.gz
YJIT: Build on BSD platforms with GNU make (#8591)
-rw-r--r--yjit/yjit.mk3
1 files changed, 1 insertions, 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)),)