You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2012/12/07 22:31:25 UTC

svn commit: r1418488 - /qpid/trunk/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb

Author: mcpierce
Date: Fri Dec  7 21:31:24 2012
New Revision: 1418488

URL: http://svn.apache.org/viewvc?rev=1418488&view=rev
Log:
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.

Modified:
    qpid/trunk/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb

Modified: qpid/trunk/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb?rev=1418488&r1=1418487&r2=1418488&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb (original)
+++ qpid/trunk/qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb Fri Dec  7 21:31:24 2012
@@ -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',



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org