I have a simple shared library that is currently compiled on Linux using:
gcc -c -fPIC foo.c -o foo.o
gcc -shared -o foo.so foo.o
I need to relay instructions to a colleague for compiling the same on AIX. I do not know if my colleague will be using gcc on AIX or a native compiler.
Will these gcc instructions also work for AIX? If not, what modifications are necessary? Linux gcc version is 4.4.7 Can anyone provide instructions for same using native AIX compiler? xlC?
Thank you.
-qmkshrobj
is used on aix - but I have not used it personally. This page might help - serc.iisc.ernet.in/facilities/ComputingFacilities/systems/… – amisax Jul 21 '15 at 4:30