How to Build Thread Safe MSL Libraries

How to Build Thread Safe MSL Libraries

Post by Not Import » Thu, 29 Jul 2004 02:26:09

How should I go about build building a thread safe version of
MSL_Runtime_PPC.Lib, MSL_C_Carbon.Lib and MSL_C++_PPC.Lib using
the lastest version of CodeWarrior.

Ideally I'd like to add targets to the appropriate projects that
build these as MSL_Runtime_PPC_MP.Lib, MSL_C_Carbon_MP.Lib and
MSL_C++_PPC_MP.Lib in addition to the normal builds.

So what project(s) need to be modiefied and where do I define

How to Build Thread Safe MSL Libraries

Post by Howard Hin » Thu, 29 Jul 2004 03:54:08

In article <RewNc.269$ XXXX@XXXXX.COM >,

To do what you want, you could edit MSL C.PPC.MTrgt.mcp and copy the
target MSL C Carbon Release (and/or Debug) to a new target, say MSL C
Carbon MP Release. Then edit that target by changing the output file to
MSL_C_Carbon_MP.Lib, and add #define _MSL_THREADSAFE 1 to that target's
prefix text. Do the same for MSL C++.PPC.MTrgt.mcp. The runtime lib is
not sensitive to this flag so you don't need MP versions of the runtime.
If you like (for convenience), do the same for MSL All Carbon Release to
create an "All" MP library (but only if you would like an ALL MP
library, you don't need one). Also for convenience you could add the MP
targets to the BuildLibraries.PPC.mcp project so that they are built
when you tell that project to "build all".

Don't forget to change the names of the libraries used in your own
projects to the MP versions when you are building for MP.

In short, just modify the C and C++ projects, and put the
_MSL_THREADSAFE flag in the prefix box of the MP targets you create.



How to Build Thread Safe MSL Libraries

Post by Not Import » Thu, 29 Jul 2004 13:22:14

In article


Worked wonderfully.

Thank you for the direct and accurate response.
Very unusual in these newsgroups.