Question:
I am building C++ shared libraries on various
non-GNU (and GNU of course) platforms so I need to
determine what compiler options to pass to generate
position independent code. Now I can always check
the compilers I have available and shell script
their options in, but is there a portable way
to do this? I saw the endian-ness posting, and I
wonder if there is a similar way to use system utilities
to check if an object file is PIC, or if it needs to be.
Then several attempts could be made to give the proper
PIC generating option based on what a dozen compilers
currently use.
I'd also like a way to create dependency files with
various compilers too. Automake does a great job
but only for GCC, not really useful for my project.
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: [EMAIL PROTECTED]