Ticket #1938: possible-fix-for-boost-with-and-without-mt.patch

File possible-fix-for-boost-with-and-without-mt.patch, 1.0 KB (added by Markus, 11 years ago)

use (working!) findlib to decide if -mt library exists and should be used

  • trunk/build/premake/extern_libs4.lua

    a b  
    242242                -- The following are not strictly link dependencies on all systems, but
    243243                -- are included for compatibility with different versions of Boost
    244244                android_names = { "boost_filesystem-gcc-mt", "boost_system-gcc-mt" },
    245                 unix_names = { "boost_filesystem-mt", "boost_system-mt" },
     245                unix_names = { os.findlib("boost_filesystem-mt") and "boost_filesystem-mt" or "boost_filesystem", os.findlib("boost_system-mt") and "boost_system-mt" or "boost_system" },
    246246                bsd_names = { "boost_filesystem", "boost_system" },
    247247            })
    248248        end,
     
    251251        link_settings = function()
    252252            add_default_links({
    253253                android_names = { "boost_signals-gcc-mt" },
    254                 unix_names = { "boost_signals-mt" },
     254                unix_names = { os.findlib("boost_signals-mt") and "boost_signals-mt" or "boost_signals" },
    255255                bsd_names = { "boost_signals" },
    256256            })
    257257        end,