> Are you invoking CMake using 'cmake -DCMAKE_BUILD_TYPE=Debug' > > As for the static linking, if the shared object is also present, CMake > (actually, ld) will default to the .so. The only way to make it link > to the static libraries is to add '-static' to CMAKE_EXE_LINKER_FLAGS. > This feature has been requested several times already but it's tricky > to implement due to the way gcc and ld work and the change in -L and > -l behavior since CMake 2.6.
With an invocation of: cmake \ -D DEPLOYROOT=/var/www/wt \ -D WEBUSER=www-data \ -D WEBGROUP=www-data \ -D MULTI_THREADED=ON \ -D HARU_PREFIX=/usr/local/ \ -D Boost_USE_STATIC_LIBS=ON \ -D BOOST_INCLUDEDIR=/usr/include/boost \ -D BOOST_LIBRARYDIR=/usr/local/lib \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D LIB_INSTALL_DIR=/usr/local/lib \ -D SHARED_LIBS=OFF \ -D CONNECTOR_FCGI=OFF \ -D CONNECTOR_HTTP=ON \ -D CMAKE_BUILD_TYPE=Debug \ -D CMAKE_EXE_LINKER_FLAGS=-static \ .. I get the following response. Notice that _boost_STATIC_TAG does not get filled in. Is there an alternate way I should be doing the CMAKE_EXE_LINKER_FLAGS option? If found my debug/shared libraries, but is still not finding my static libraries (whether debug or not). -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:373 ] Boost not in cache -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:376 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1 .41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.3 6;1.35.1;1.35.0;1.35 -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:378 ] Boost_USE_MULTITHREADED = ON -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:380 ] Boost_USE_STATIC_LIBS = ON -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:439 ] Declared as CMake or Environmental Variables: -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:441 ] BOOST_ROOT = /usr -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:443 ] BOOST_INCLUDEDIR = /usr/include/boost -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:445 ] BOOST_LIBRARYDIR = /usr/local/lib -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:447 ] _boost_TEST_VERSIONS = 1.35;1.36;1.37;1.38;1.39;1.40;1.41;1.42;1.43;1.44;1.45;1.46;1.47;1.48;1.49;1 .41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.3 6;1.35.1;1.35.0;1.35 -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:496 ] Include debugging info: -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:498 ] _boost_INCLUDE_SEARCH_DIRS = /usr/include/boost;/usr/include;/usr;C:/boost/include;C:/boost;/boost/includ e;/boost;/sw/local/include -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:500 ] _boost_PATH_SUFFIXES = boost-1_35;boost-1_36;boost-1_37;boost-1_38;boost-1_39;boost-1_40;boost-1_41 ;boost-1_42;boost-1_43;boost-1_44;boost-1_45;boost-1_46;boost-1_47;boost-1_4 8;boost-1_49;boost-1_41_0;boost-1_41;boost-1_40_0;boost-1_40;boost-1_39_0;bo ost-1_39;boost-1_38_0;boost-1_38;boost-1_37_0;boost-1_37;boost-1_36_1;boost- 1_36_0;boost-1_36;boost-1_35_1;boost-1_35_0;boost-1_35 -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:524 ] location of version.hpp: /usr/include/boost/version.hpp -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:543 ] version.hpp reveals boost 1.44.0 -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:634 ] guessed _boost_COMPILER = -gcc44 -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:644 ] _boost_MULTITHREADED = -mt -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:661 ] _boost_STATIC_TAG = -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:663 ] _boost_ABI_TAG = d -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:696 ] _boost_LIBRARIES_SEARCH_DIRS = /usr/local/lib;/usr/lib;/usr/stage/lib;/usr/include/lib;/usr/include/../lib; C:/boost/lib;C:/boost;/boost/boost_1_44_0/lib;/boost/boost_1_44/lib;/boost/l ib;/boost;/sw/local/lib -- [ /usr/share/cmake-2.8/Modules/FindBoost.cmake:830 ] Boost_FOUND = FALSE -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest