On 09/03/2013 11:09 PM, [email protected] wrote:
Author: astitcher
Date: Tue Sep  3 22:09:17 2013
New Revision: 1519866

URL: http://svn.apache.org/r1519866
Log:
QPID-5111: Make library dependencies clearer in build system
- Use -as-needed to link libraries to avoid unnecessary libraries
- Tidyup mess with nss and qpid-proton libraries

Modified:
     qpid/trunk/qpid/cpp/bindings/qmf2/examples/cpp/CMakeLists.txt
     qpid/trunk/qpid/cpp/examples/messaging/CMakeLists.txt
     qpid/trunk/qpid/cpp/src/CMakeLists.txt
     qpid/trunk/qpid/cpp/src/amqp.cmake
     qpid/trunk/qpid/cpp/src/qpid/store/CMakeLists.txt
     qpid/trunk/qpid/cpp/src/rdma.cmake
     qpid/trunk/qpid/cpp/src/tests/CMakeLists.txt

This breaks the build for me (Fedora 18, cmake 2.8.9) with the following error (the colon separated libs was the reason I put in the extra processing in the first place):

[ 32%] Building CXX object 
src/CMakeFiles/qpidcommon.dir/qpid/sys/posix/MemStat.o
Linking CXX shared library libqpidcommon.so
/usr/bin/ld: cannot find -lssl3;smime3;nss3;nssutil3;plds4;plc4;nspr4;pthread;dl
collect2: error: ld returned 1 exit status
make[2]: *** [src/libqpidcommon.so.2.0.0] Error 1
make[1]: *** [src/CMakeFiles/qpidcommon.dir/all] Error 2
make: *** [all] Error 2

It also appears to break the build for RHEL6 and windows though in different ways.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to