bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Additional link flags for HP aCC and SGI CC


From: Gary V . Vaughan
Subject: Re: Additional link flags for HP aCC and SGI CC
Date: Tue, 24 Aug 2004 10:37:36 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 24 Aug 2004, at 08:43, Ludovic Courtès wrote:

Hi,

Yesterday, 14 hours, 50 minutes, 58 seconds ago, Gary V. Vaughan wrote:
Can you pass those flags through libtool using, for example, ``-Wc,-n32''
or ``-Xlinker,-no_prelink''?

Actually, I see that these options are not very well documented... I'll
commit a patch shortly.

Or maybe I just overlooked the manual since they actually _are_
documented.  ;-)

I couldn't find -Xcompiler or -Wc in the manual...

Anyway, I tried `-Xlinker -mt' (note: no comma) with aCC but since `-mt'
is not an actual linker flag, this does not correspond to what I'd like
to do (moreover HP-UX linker's `-m' option really has nothing to do with
`-mt': "This option produces a load map on the standard output").  Here
is what aCC's manual says about `-mt':

-mt Sets various -D flags to enable multi-threading. Also
                     sets -lpthread.  For details see HP aC++ Online
                     Programmer's Guide.

Ok, I could just pass `-lpthread' manually and it may work well but I
have the feeling that `-mt' is pretty opaque and is supposed to be used
"as is" by the end user (the end user knows the semantics of `-mt' but
he is not supposed to be aware of its implementation details).

But there is also -Xcompiler for these cases.  Remember that libtool is
supposed to hide platform specific concerns, and if we started adding
specific support for particular compiler switches, libtool would soon
have no advantage over using the compiler directly for developers who
want to provide a package that compiles on several hosts.

Same for `-AA': the linker doesn't have any such option so this is just
an aCC option that it recognizes at link time and converts in a
`-lCsup_v2' or `-lCsup' linker argument (just guessing since what it
actually does isn't documented and may be more complicated than that).

Does ``-Xcompiler -AA'' work for you?

IMO, C++ specific linker options ought to be treated specifically as
linking C++ code already requires to use the C++ compiler anyway.
Giving knowledge of `-32', `-mt' and other platform specific switches to
`ltmain.sh' would also make people's life easier I think.

If you can find a higher level abstraction that can be implemented for
all platforms that libtool supports, along with a patch for the platforms you have access to, then we can probably accept that. E.g: libtool - --abi=32,
or libtool --threaded...

Cheers,
        Gary.
- --
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQFBKwxkFRMICSmD1gYRAj3YAKC0q+J5ZyG7LUtQmvTlJy0hb8dMcQCeIQm2
1J6uGJFmXYqu2lqedXisL8s=
=Y0mo
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]