public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: Nicholas Mc Guire <der.herr@hofr.at>
Cc: gcc-help@gcc.gnu.org
Subject: Re: non standard libs
Date: Sun, 24 Dec 2000 10:04:00 -0000	[thread overview]
Message-ID: <or1yux4rwf.fsf@guarana.lsd.ic.unicamp.br> (raw)
In-Reply-To: <200012241402.HAA05527@nis.hofr.at>

On Dec 24, 2000, Nicholas Mc Guire <der.herr@hofr.at> wrote:

>  which compiles ok , but does not use the glibc-2.0.7 libs but the normal system
>  libs in /lib (blibc-2.1.3) and thus segfaults on the old system.

>  could someone point out to me whats wrong with the compiler flags I was using ?

Nothing's wrong with your flags.  You just failed to tell the linker
to add a note in the program that, at run-time, it should look for
libc in this other directory.  Set LD_RUN_PATH or use -rpath to
accomplish that.

An alternative is to create a link in /lib with the libc SONAME
encoded in the program that points to the old version of glibc.

It might be that you'll also have to tell the linker that the program
needs the old dynamic loader (ld.so).  I don't know how to do that,
though.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

  reply	other threads:[~2000-12-24 10:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-24  6:02 Nicholas Mc Guire
2000-12-24 10:04 ` Alexandre Oliva [this message]
2000-12-25  2:54   ` Nicholas Mc Guire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=or1yux4rwf.fsf@guarana.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=der.herr@hofr.at \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).