[前][次][番号順一覧][スレッド一覧]

ruby-changes:59919

From: Mikhail <ko1@a...>
Date: Tue, 4 Feb 2020 08:04:42 +0900 (JST)
Subject: [ruby-changes:59919] 7c165bd7d9 (master): Fix linkage of popen_deadlock test

https://git.ruby-lang.org/ruby.git/commit/?id=7c165bd7d9

From 7c165bd7d9451cc5c9fc833807ca071d7012e138 Mon Sep 17 00:00:00 2001
From: Mikhail Novosyolov <m.novosyolov@r...>
Date: Sun, 26 Jan 2020 16:37:34 +0300
Subject: 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.

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 @@ https://github.com/ruby/ruby/blob/trunk/ext/-test-/popen_deadlock/extconf.rb#L1
 # frozen_string_literal: false
 case RUBY_PLATFORM
 when /solaris/i, /linux/i
+  $LDFLAGS << " -ldl"
   create_makefile("-test-/popen_deadlock/infinite_loop_dlsym")
 end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]