porting to realtime platform

Hello list, To use the realtime features of my hardware I need to link against a special library instead of rt. How can I replace the -lrt linker flags by -lrealtime when compiling the boost library? Harald Haspl

Harald Haspl wrote:
Hello list,
To use the realtime features of my hardware I need to link against a special library instead of rt. How can I replace the -lrt linker flags by -lrealtime when compiling the boost library?
Educated guess, since you don't say much, you are using Boost 1.31 or 1.32 with the gcc toolset on an OS which is not BeOS, Darwin, BSD, IRIX, nor HPUX, but it could be SunOS or Linux :-) With that in mind... Edit boost-root/tools/build/v1/gcc-tools.jam and add a case for your OS in the switch around lines 106-153 before the "case *". There are other examples of OSes that don't use -lrt, with comments, so it should be obvious what to do ;-) But if you are in SunOS you may have to do some other hacking. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq

On Tuesday 07 December 2004 18:45, Rene Rivera wrote:
Harald Haspl wrote:
How can I replace the -lrt linker flags by -lrealtime when compiling the boost library? Educated guess, since you don't say much, you are using Boost 1.31 or 1.32 with the gcc toolset on an OS which is not BeOS, Darwin, BSD, IRIX, nor HPUX, but it could be SunOS or Linux :-)
It is Boost 1.31 on Linux and gcc. In fact the question concerned the handling of the jam-build system.
With that in mind... Edit boost-root/tools/build/v1/gcc-tools.jam and add a case for your OS in the switch around lines 106-153 before the "case *". There are other examples of OSes that don't use -lrt, with comments, so it should be obvious what to do ;-)
I've edited this file and now it works the way I like :-) Oh, and I have found some useful documentation about the Jam-system in this directory. thank you, Harald.
participants (2)
-
Harald Haspl
-
Rene Rivera