This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/9843: [HPUX] -static still leaves the linker looking f or shl_*
- From: law at redhat dot com
- To: "BONNER,MATT (HP-Vancouver,ex1)" <matt dot bonner at hp dot com>
- Cc: "'John David Anglin'" <dave at hiauly1 dot hia dot nrc dot ca>, danglin at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Wed, 19 Mar 2003 12:53:45 -0700
- Subject: Re: target/9843: [HPUX] -static still leaves the linker looking f or shl_*
- Reply-to: law at redhat dot com
In message <A134E2426B46D711BB4B000347AE6E7C76EBBE at xvan02 dot vcd dot hp dot com>, "BONNER,
MATT (HP-Vancouver,ex1)" writes:
>>> From: law at redhat dot com [mailto:law at redhat dot com]
>>> Sent: Wednesday, March 19, 2003 10:43 AM
>>> To: BONNER,MATT (HP-Vancouver,ex1)
>>> Cc: 'John David Anglin'; danglin at gcc dot gnu dot org; gcc-bugs at gcc dot gnu dot org;
>>> gcc-prs at gcc dot gnu dot org; nobody at gcc dot gnu dot org; gcc-gnats at gcc dot gnu dot org
>>> Subject: Re: target/9843: [HPUX] -static still leaves the linker looking
>f or shl_*
>>>
>>>
>>> In message
>>> <A134E2426B46D711BB4B000347AE6E7C76EBBD at xvan02 dot vcd dot hp dot com>, "BONNER,
>MATT" writes:
>>> >Hmmm...
>>> >
>>> >Maybe all is still not well. When I move an executable compiled with
>>> >all this stuff from an HP-UX 11 machine to an HP-UX machine, I get
>>> >
>>> >/usr/lib/dld.sl: Can't open shared library: /usr/lib/libdld.2
>>> >/usr/lib/dld.sl: No such file or directory
>>> >IOT trap
>>> >
>>> >I'm hunting around as I write this, but if you know what I'm doing
>>> >wrong now, please let me know. Or if the answer is "You can't run
>>> >11 executables on 10." :-)
>>>
>>> You can't run hpux11 executables on an hpux10 system.
>
>Okay. Bummer. However, I'm still confused. I thought all these -Wl,-E,+n
>commands were to link statically. Why, then, is the executable looking for
>shared library libdld.2?
Because it's impossible to build a true static executable on hpux11.
jeff