Skip to content

Commit

Permalink
Statically link libmmtk_ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Oct 3, 2024
1 parent 7d250d9 commit 231cecd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1906,8 +1906,7 @@ rewindable:
HELP_EXTRA_TASKS = ""

MMTK_BUILD=debug
MMTK_LIB_PATH=$(srcdir)/gc/mmtk/target/$(MMTK_BUILD)
MMTK_LIB=mmtk_ruby
MMTK_LIB_PATH=$(srcdir)/gc/mmtk/target/$(MMTK_BUILD)/libmmtk_ruby.$(LIBEXT)

shared-gc: probes.h
$(Q) if test -z $(shared_gc_dir); then \
Expand All @@ -1920,7 +1919,7 @@ shared-gc: probes.h
$(MAKEDIRS) $(shared_gc_dir); \
echo generating $(shared_gc_dir)librubygc.$(SHARED_GC).$(SOEXT); \
if [ "$(SHARED_GC)" = "mmtk" ]; then \
$(LDSHARED) -I$(srcdir)/include -I$(srcdir) -I$(arch_hdrdir) $(XDLDFLAGS) -L$(MMTK_LIB_PATH) -Wl,--rpath=$(MMTK_LIB_PATH) $(cflags) -DBUILDING_SHARED_GC -fPIC -o $(shared_gc_dir)librubygc.$(SHARED_GC).$(SOEXT) $(srcdir)/gc/$(SHARED_GC).c -l$(MMTK_LIB); \
$(LDSHARED) -I$(srcdir)/include -I$(srcdir) -I$(arch_hdrdir) $(XDLDFLAGS) $(cflags) -DBUILDING_SHARED_GC -fPIC -o $(shared_gc_dir)librubygc.$(SHARED_GC).$(SOEXT) $(srcdir)/gc/$(SHARED_GC).c $(MMTK_LIB_PATH); \
else \
$(LDSHARED) -I$(srcdir)/include -I$(srcdir) -I$(arch_hdrdir) $(XDLDFLAGS) $(cflags) -DBUILDING_SHARED_GC -fPIC -o $(shared_gc_dir)librubygc.$(SHARED_GC).$(SOEXT) $(srcdir)/gc/$(SHARED_GC).c; \
fi; \
Expand Down

0 comments on commit 231cecd

Please sign in to comment.