diff options
| author | Darryl L. Pierce <mcpierce@apache.org> | 2012-12-07 21:31:24 +0000 |
|---|---|---|
| committer | Darryl L. Pierce <mcpierce@apache.org> | 2012-12-07 21:31:24 +0000 |
| commit | 2d1706fddbe8377a658f3e18d2e2b90b3bed2189 (patch) | |
| tree | 35e06417d9eeb1834cc5255306ea38104fdfecce /qpid/cpp | |
| parent | 9d6a4a6f100eb70ebc44bbd6ae626b0fc86c547a (diff) | |
| download | qpid-python-2d1706fddbe8377a658f3e18d2e2b90b3bed2189.tar.gz | |
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
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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', |
