Re: xlc_r question for AIX 4.1.4

From: Drew Csillag <drew_at_prodigy.net>
Date: 1996/05/30
Message-ID: <31AD9F16.167E_at_prodigy.net>#1/1


mmissire wrote:
>

 ...cut text...
>
> However, I am unclear on WHY this is necessary in the first place.
> The man page for xlc_r doesn't say why you would use it, and I don't
> have access to the AIX C Language Reference or other compiler docs.
> Can anyone explain why one needs to use xlc_r? Should one use it for
> all shared libraries?
>
> Thanks,
>
> Marc Missire
> mmissire_at_visigenic.com

The main reason for this is that xlc_r automagically links in the reentrant c library and has different startup code (it uses crt0_r.o or something like that instead of crt0.o). You can compile threaded programs with xlc, but you have to jump through a few hoops to do it. It's just easier to use xlc_r.

-- 
---------------------------------------------------------------------
Drew Csillag                                         drew_at_prodigy.com
Prodigy Service                                          914-448-8187
Linux, AIX and GNU Head                            programmer/analyst
---------------------------------------------------------------------
Received on Thu May 30 1996 - 00:00:00 CEST

Original text of this message