summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMikhail Novosyolov <m.novosyolov@rosalinux.ru>2020-01-26 16:37:34 +0300
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-04 08:04:13 +0900
commit7c165bd7d9451cc5c9fc833807ca071d7012e138 (patch)
tree36cc41b93b4362bcd3abf2359d0eb52177903a79 /ext
parenta4fca28b805cc8714cad1107424d97b822bf6414 (diff)
Fix linkage of popen_deadlock test
DEBUG: BUILDSTDERR: /usr/bin/ld: infinite_loop_dlsym.o: in function `native_loop_dlsym': DEBUG: BUILDSTDERR: /builddir/build/BUILD/ruby-2.7.0/ext/-test-/popen_deadlock/infinite_loop_dlsym.c:16: undefined reference to `dlsym' DEBUG: BUILDSTDERR: collect2: error: ld returned 1 exit status Ruby was built with LibreSSL.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2862
Diffstat (limited to 'ext')
-rw-r--r--ext/-test-/popen_deadlock/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/-test-/popen_deadlock/extconf.rb b/ext/-test-/popen_deadlock/extconf.rb
index 24a7d79..6b6ee7a 100644
--- a/ext/-test-/popen_deadlock/extconf.rb
+++ b/ext/-test-/popen_deadlock/extconf.rb
@@ -1,5 +1,6 @@
# frozen_string_literal: false
case RUBY_PLATFORM
when /solaris/i, /linux/i
+ $LDFLAGS << " -ldl"
create_makefile("-test-/popen_deadlock/infinite_loop_dlsym")
end