Boost logo

Boost-Build :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2006-01-09 04:50:21

Douglas Gregor wrote:
> On Jan 8, 2006, at 8:02 PM, Alexander Nasonov wrote:
>>Can we replace -openmp option with -mt option on FreeBSD?
> -openmp is a really weird flag to use to enable multithreading.
> OpenMP is *very* different from pthreads, which one would expect to
> use for the Boost.Thread library on FreeBSD...

I would expect to use pthreads on linux as well. Does -openmp imply
pthreds on linux?

BTW, a combination of "intel-linux" and FreeBSD might be confusing.
Although the compiler itself if linux binary file:

$ readelf -l /usr/local/intel_cc_80/bin/icpcbin | grep interpreter
       [Requesting program interpreter: /lib/]
$ ldd /usr/local/intel_cc_80/bin/icpcbin
/usr/local/intel_cc_80/bin/icpcbin: => /lib/ (0x280e0000) => /lib/ (0x28102000) => /lib/ (0x28153000)
         /lib/ => /lib/ (0x280ca000)

it generates native FreeBSD binaries:

$ /usr/local/intel_cc_80/bin/icpc multithreaded.cpp -mt
$ readelf -l a.out | grep interpreter
       [Requesting program interpreter: /libexec/]
$ ldd a.out
a.out: => /lib/ (0x28075000) => /usr/lib/ (0x2808b000) => /usr/lib/ (0x28155000) => /lib/ (0x2817a000)

Alexander Nasonov

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at