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 | 65b07f45fac6e826b9b924bb4003a7a03bf1f186 (patch) | |
| tree | 78d515c7189c0dc341e56fc35fe8795ae930b374 /cpp | |
| parent | f02ec7a0bab8326b4b681ad4af822a166bd0cc90 (diff) | |
| download | qpid-python-65b07f45fac6e826b9b924bb4003a7a03bf1f186.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/qpid@1418488 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb b/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb index 90292d4bec..fc9e65d562 100644 --- a/cpp/bindings/qpid/ruby/ext/cqpid/extconf.rb +++ b/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', |
