Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
I3oris committed Jun 12, 2022
1 parent c46e835 commit e273413
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion share/crystal-ic/src/crystal/system/unix/lib_event2.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "c/netdb"

# MUSL: On musl systems, librt is empty. The entire library is already included in libc.
# The empty library is only available for POSIX compatibility. We don't need to link it.
{% if flag?(:linux) && !flag?(:musl) %}
{% if flag?(:linux) && !flag?(:gnu) && !flag?(:interpreted) %}
@[Link("rt")]
{% end %}

Expand Down
5 changes: 4 additions & 1 deletion share/crystal-ic/src/lib_c/aarch64-linux-gnu/c/dlfcn.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@[Link("dl")]
{% unless flag?(:interpreted) %}
@[Link("dl")]
{% end %}

lib LibC
RTLD_LAZY = 0x00001
RTLD_NOW = 0x00002
Expand Down
5 changes: 4 additions & 1 deletion share/crystal-ic/src/lib_c/arm-linux-gnueabihf/c/dlfcn.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@[Link("dl")]
{% unless flag?(:interpreted) %}
@[Link("dl")]
{% end %}

lib LibC
RTLD_LAZY = 0x00001
RTLD_NOW = 0x00002
Expand Down
5 changes: 4 additions & 1 deletion share/crystal-ic/src/lib_c/i386-linux-gnu/c/dlfcn.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@[Link("dl")]
{% unless flag?(:interpreted) %}
@[Link("dl")]
{% end %}

lib LibC
RTLD_LAZY = 0x00001
RTLD_NOW = 0x00002
Expand Down
5 changes: 4 additions & 1 deletion share/crystal-ic/src/lib_c/x86_64-linux-gnu/c/dlfcn.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@[Link("dl")]
{% unless flag?(:interpreted) %}
@[Link("dl")]
{% end %}

lib LibC
RTLD_LAZY = 0x00001
RTLD_NOW = 0x00002
Expand Down

0 comments on commit e273413

Please sign in to comment.