libtool
[Top][All Lists]
Advanced

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

Porting question (HP-UX on IA64)


From: Steve Ellcey
Subject: Porting question (HP-UX on IA64)
Date: Thu, 5 Apr 2001 14:26:41 -0700 (PDT)

I trying to port libtool to the IA64 HP-UX platform and have a question.
HP-UX on IA64 supports a 32 bit programming model and a 64 bit model.
Currently I have a gcc (and an HP C) that can generate either type of
object based on a flag.  The linker (HP's linker; GNU ld has not been
ported) doesn't need a flag, it just looks at the first object to see if
it is ELF32 or ELF64 and acts accordingly.  Specifically, it goes to
/usr/lib/hpux32 or /usr/lib/hpux64 for its libraries based on if your
object is 32 or 64 bits.

So my question is:  how do I deal with this in libtool?  Specifically I
am trying to set sys_lib_search_path_spec and sys_lib_dlsearch_path_spec
to different values based on what I am trying to link.  It would be nice
if I could do what HP's ld does and just look at the first object to see
what it is (file would tell me if it was 32 or 64 bits), if that isn't
possible then I could look for an option (say the -milp32 or -mlp64
options that are used for gcc) to set sys_lib_search_path_spec.  But I
am not sure how to do either.  Can someone offer advice or an example on
how this is done?

Steve Ellcey
address@hidden



reply via email to

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