Boost logo

Boost-Build :

From: Rush Manbert (rush_at_[hidden])
Date: 2005-10-11 20:08:57


Michael van der Westhuizen wrote:

> I took a quick look at the logs you sent, and at the 1.33.0
>
>darwin-tools.jam, and I'd suggest that instead of calling ar/ranlib
>and ld directly, the toolset should use libtool (it's not GNU libtool)
>and g++ directly.
>
>I submitted changes to ACE recently to get ACE+TAO building on MacOS
>10.4, the gist of which were:
>
>Use 'g++ -fno-common -dynamiclib -flat_namespace' as the linker
>Use '-fno-common' as an argument to g++ (for shared objects)
>Use 'libtool -static' as the archive linker
>
>In my private build system I use the following basic flags:
>
>C Archiver: libtool
>C Linker: gcc
>C Dynamic linker: gcc
>
>C++ Archiver: libtool
>C++ Linker: g++
>C++ Dynamic linker: g++
>
>C and C++ PIC Flags: -fPIC -fno-common
>
>C and C++ Dynamic linker flags: -fPIC -fno-common -dynamiclib
>-undefined dynamic_lookup -Wl,-install_name,lib$(PROJECT).$(SOEXT)
>(where PROJECT is the library name and SOEXT is .dylib)
>
>C Archiver flags: -static
>
>I hope this helps a bit. I would update the Jamfile and submit it, but
>I haven't been building Boost on OSX (yet - headers only for now), and
>Boost.Build never ceases to defeat me when I try to do anything in it
>(which is why I'm on this list - trying to learn!)
>
>I'd be happy to work with any Boost.Build contributer to help improve
>the quality of Darwin support.
>
>
>
OMG, I took my first look at darwin-tools.jam, hoping that maybe I could
tweak it a little bit.
I don't think that's going to be happening any time soon. It also turns
out that the original
build output had errors in it about undefined symbols, but when I built
it again last Friday,
those errors weren't in the output text file. It looks like I didn't
capture stderr output. I have
posted again to the Boost Users list, asking Gennadiy to look at newly
captured output that
identifies the undefined symbols. I don't know what will happen next,
except that at this point I
wouldn't touch the jamfile with a ten foot pole. :-)

- Rush

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk