Skip to content

Commit

Permalink
Remove pkg-config name for libgc as workaround for interpreter loader (
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Jan 10, 2024
1 parent dd5d2dd commit bd43c5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gc/boehm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@

{% if flag?(:freebsd) || flag?(:dragonfly) %}
@[Link("gc-threaded")]
{% elsif flag?(:interpreted) %}
# FIXME: We're not using the pkg-config name here because that would resolve the
# lib flags for libgc including `-lpthread` which the interpreter is not able
# to load on systems with modern libc where libpthread is only available as an
# (empty) static library.
@[Link("gc")]
{% else %}
@[Link("gc", pkg_config: "bdw-gc")]
{% end %}
Expand Down

0 comments on commit bd43c5f

Please sign in to comment.