summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-05-02 17:12:14 -0700
committerRuss Allbery <rra@stanford.edu>2010-05-02 17:12:14 -0700
commitdf9c10713c53d98211102b3127a2a3d8bdb0d345 (patch)
treedf4cdc71f3acb11523329d0de3e8c1c145f6713a /ruby
parent7c5178261cbb36381dc6dfdcdabd8e0485037de6 (diff)
Stop checking for libremctl in the Ruby build
Force the link with our just-built copy of libremctl and don't check for the library. mkmf is apparently too stupid to use $LDFLAGS when searching for a shared library and fails unless libremctl is already installed in the system locations.
Diffstat (limited to 'ruby')
-rw-r--r--ruby/extconf.rb.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/ruby/extconf.rb.in b/ruby/extconf.rb.in
index 8b1879b..18eafad 100644
--- a/ruby/extconf.rb.in
+++ b/ruby/extconf.rb.in
@@ -20,9 +20,12 @@ Config::MAKEFILE_CONFIG['libdir'] = '@abs_top_srcdir@/client/.libs'
# should be able to set at build time without losing information.
$INCFLAGS = "-I@abs_top_srcdir@ #{$INCFLAGS}"
$CPPFLAGS << " #{$CFLAGS} @CPPFLAGS@"
-$LDFLAGS << " -L@abs_top_srcdir@/client/.libs -L#{old_libdir} @LDFLAGS@"
+$LDFLAGS << " -L@abs_top_srcdir@/client/.libs -lremctl -L#{old_libdir}"
+$LDFLAGS << " @LDFLAGS@"
-fail "Couldn't find libremctl"\
- unless have_library('remctl', 'remctl_open', 'remctl.h')
+# Intentionally do not check for libremctl here. We're forcing the link
+# with LDFLAGS above, and mkmf is apparently too stupid to use $LDFLAGS
+# when searching for a shared library and fails unless libremctl is
+# already installed in the system locations.
create_makefile('remctl')