public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: "Reiner Suikat" <Reiner.Suikat@dlr.de>
To: <sourcenav@sources.redhat.com>
Subject: Linking libraries with relative pathnames?
Date: Mon, 27 Nov 2000 08:37:00 -0000	[thread overview]
Message-ID: <HKEGJFNICJKAMIILDOFCAEHMCBAA.Reiner.Suikat@dlr.de> (raw)

Hello,

I'm running into a problem trying to link with some shared libraries without
having absolute paths defined. The idea is  that if I had some means of
sharing build target definitions among users, users could then link with
their own local copies of certain libraries. Unfortunately, at this time
that is not possible (I "share" build target information by copying the
entire *.proj files, which works fine) since libraries can only be specified
with full absolute pathname. My first idea fo just putting the libs I'm
using in an environment variable and placing that in the Link Flags fields
works fine on Linux, but not on SGI.
The problem here is that the link line now first lists the libs and then the
main .o file, in which case the SGI linker does not reolve any symbols from
the main program. (It only ssearches each library once for the symbols that
are unknown at that time). The gnu linker has no proble here.

So, here is the question in short:
Is there any way to get a link line similar to
ld Flags -o something xx.o ${LIBS}

so that the libs (with relative path) come after the main object file?

Thanks for any help and keep up the good work, I love sourcenav!!!

Greetings

Reiner

--
Reiner Suikat
Institute of Flight Guidance
German Aerospace Center (DLR)

                 reply	other threads:[~2000-11-27  8:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=HKEGJFNICJKAMIILDOFCAEHMCBAA.Reiner.Suikat@dlr.de \
    --to=reiner.suikat@dlr.de \
    --cc=sourcenav@sources.redhat.com \
    /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).