Hi,

On Wed, Sep 06, 2000 at 03:48:30PM -0500, Robert Boehne wrote:
> 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.

Why not just use GNU Libtool to handle shared library generation for
you?

>  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.

I believe that the version of Automake currently in the CVS repository
supports dependency generation for compilers other than gcc via the
newly added `depcomp' script.  I'm not sure when the next version of
Automake will be released, however.

-Ossama
-- 
Ossama Othman <[EMAIL PROTECTED]>
Distributed Object Computing Laboratory, Univ. of California at Irvine
1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068  70E6 5EB7 5E71 F7A3 94A8

Reply via email to