Boost logo

Boost-Build :

From: Anthony Novatsis (anthonynovatsis_at_[hidden])
Date: 2008-05-26 09:25:37

Dear All,

I am currently trying to create a shared library using boost-build with
version naming so that ldconfig will automatically create the necessary
symbolic links after installation. Normally, the [gcc] command line for
this is something similar to the following.

gcc -shared -Wl,-h, -o stuff.o -lc

whereby a shared library called will be created and then
when ldconfig is executed (with appropriate path setup), the symbolic link will be created which points to the file.

Using boost-build, I have created a tag rule which modifies the name of the
shared library (type SHARED_LIB) to include the version number which
correctly modifies the soname to the name returned from the rule (with major
version number). The resulting command line is as follows:

"g++" -o "bin/gcc-4.1.1/release/" -Wl,-h -Wl,
-shared -Wl,--start-group "bin/gcc-4.1.1/release/stuff.o" -Wl,--end-group

However, as seen above, it also modifies the object name to the same value.
What I need is to modify the object name to a different value (with the
major and minor version numbers). The desired command line is as follows:

"g++" -o "bin/gcc-4.1.1/release/" -Wl,-h -Wl,
-shared -Wl,--start-group "bin/gcc-4.1.1/release/stuff.o" -Wl,--end-group

Does anybody know how I achieve this with boost-build?

Any help would be appreciated.


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