compiling thread safe c on aix

Hi, I'm trying to compile a Perl module for AIX 5.3. Now, Perl by default wants to use cc_r as compiler but I only have gcc installed on this system.

How can I get gcc to be thread safe? Or can I use gcc without any options and expect it to behave the same as cc_r?