Joseph,

Yes, you are right, the naming conventions of boost are not very
straightforward, and differ depending on your compile options (the
--layout parameter - my boost 1.39 still has -mt in its name). I like
your patch, and I'm wondering if it would be better to modify it as
follows:
- Search for the boost thread library first, both with and without -mt
in the name. If found, assume a multithreaded boost, and copy the
naming convention with respect to -mt from the thread library.
- If the boost thread library was not found, assume that boost was
built without threading support.

Any thoughts?

Best regards,
Wim.

2009/6/22 Joseph VanAndel <[email protected]>:
> I'm using boost_1_39_0 and wt from git
> -----------------------------------
> commit 792fda688292be10756dea1607581a7dc10f8e61
> Author: Koen Deforche <[email protected]>
> Date:   Tue Jun 2 16:54:40 2009 +0200
> ------------------------------------
>
> on CentOS 5
>
> cmake/WtFindBoost.txt assumes that the multithreaded libraries of boost have
> '-mt' in their filename.
> I built boost_1_39_0 using:
> ./bjam --build-type=minimal  --layout=system \
> variant=debug link=shared threading=multi runtime-link=shared  install
>
> The libraries support multithreading, but do *not* have -mt in their
> filenames.
>
> I've attached a diff for cmake/WtFindBoost.txt that allows a user to pass
> -DBOOST_FORCE_MULTITHREAD=1 as an option to cmake.
> Could one of the Wt maintainers apply this patch, or devise another solution
> to this issue?
>
> Thanks much!
>

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to