Boost logo

Boost-Build :

Subject: [Boost-build] generate a relocatable module?
From: Laurent Morichetti (l_m_at_[hidden])
Date: 2009-02-12 21:26:21


How can I generate a relocatable module from object files (ld --relocatable) instead of an archive library? Or, is it possible to create an alias that containd the list of objects corresponding to the sources in a [ glob *.cpp ]? My application uses modules created in subdirectories and need to have the object files in the command line instead of an archive library. This is what I would like to do: lib MyModule : [ glob *.cpp ] : <link>module ; exe MyApp : App.cpp : <library>MyModule ; thoat would result in: cc -c a.cpp cc -c b.cpp ld -r MyModule.o a.o b.o cc -c App.cpp cc -o MyApp App.o MyModule.o or cc -c a.cpp cc -c b.cpp cc -c App.cpp cc -o MyApp App.o a.o b.o Thanks.


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