From 2d1706fddbe8377a658f3e18d2e2b90b3bed2189 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Fri, 7 Dec 2012 21:31:24 +0000 Subject: QPID-4495: RVM fails to use C++ compiler for the Ruby gem. mkmf tries to find a basic working compiler and linker first, and when it finds gcc it stops. But since Qpid is written in C++ this causes the gem to fail to install when the C++ libraries checked. This fix forces mkmf from the outset to use a C++ compiler instead. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1418488 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb b/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb index 90292d4bec..fc9e65d562 100644 --- a/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb +++ b/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb @@ -26,9 +26,10 @@ require 'mkmf' # Setup the build environment. -$CFLAGS = "-fPIC -fno-inline -x c++" +$CFLAGS = "-fPIC -fno-inline -x c++ -lstdc++" REQUIRED_LIBRARIES = [ + 'stdc++', 'qpidclient', 'qpidcommon', 'qpidmessaging', -- cgit v1.2.1