compiling thread safe c on aix


 
Thread Tools Search this Thread
Top Forums Programming compiling thread safe c on aix
# 1  
Old 03-16-2007
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Programming

Thread Safe and Rentrancy

I have read at many places that a thread-safe function is always reentrant, but a reentrant function is not always thread-safe. I understand the second part that reentrant function is not always thread-safe, since the reentrant function works on each of the thread's local data and so if the... (4 Replies)
Discussion started by: rupeshkp728
4 Replies
Login or Register to Ask a Question
g-wrap-config(1)					      General Commands Manual						  g-wrap-config(1)

NAME
g-wrap-config - script to get information about the installed version of G-Wrap SYNOPSIS
g-wrap-config [ --version ] [ --c-compile-args LANG | --c-link-args LANG | --guile-module-directory ] DESCRIPTION
g-wrap-config is a tool that is used to configure and determine the compiler and linker flags that should be used to compile and link progams, libraries, and plugins that use G-Wrap. However, since G-Wrap 1.9, this tool has been deprecated in favor of pkg-config(1). New code should use the g-wrap-2.0-guile pkg-config module, g-wrap-config only exists for compatibility reasons. OPTIONS
--c-compile-args LANG Print the compiler flags that are necessary to compile a program or library that uses the G-Wrap language binding for LANG. --c-link-args LANG Print the linker flags that are necessary to link a program that uses the G-Wrap language binding for LANG. --version Prints the currently installed version of G-Wrap on standard output. EXAMPLES
gcc -o main.o $(g-wrap-config --c-compile-args guile) main.c is how you might use g-wrap-config to compile a C source file for an executable program. gcc -o my_app $(g-wrap-config --c-link-args guile) main.o util.o is how you might use g-wrap-config to link compiled objects into an executable program. AUTHOR
G-Wrap has been written by Andreas Rottmann, Rob Browning and Christopher Lee. This manual page was written by Andreas Rottmann, originally for the Debian Project. G-Wrap 1.9 2005-05-01 g-wrap-config(1)