[672] in Pthreads mailing list archive
ptheards on AIX 4.1
daemon@ATHENA.MIT.EDU (Nick Godbey)
Wed Jul 9 21:26:59 1997
Date: Wed, 09 Jul 1997 21:16:09 -0400
From: Nick Godbey <Nick.Godbey@es.atl.sita.int>
To: pthreads@MIT.EDU
Some weeks back I ask for help with getting ptheards to work with
AIX 4.1. I was using gcc 2.7.2. Well here is what I found. On AIX 4.1
there are two functions that must be called before main. The
IBM xlc compiler can be used for thread apps and non thread apps.
To us it for threaded apps xlc_r is soft linked to xlc. The argv[0]
arg is then used as a switch to tell xlc to insert these two
hidden function calls before main. gcc does not know how to do
this so it can't be used! This is a major problem as I don't have a
xlC_r(C++ version) and I need to use gcc.
Thanx IBM!!!!
-nick