Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Jeff Donsbach" <jeff.donsbach@compaq.com>
Subject: Re: Linker Problems
Date: Mon, 16 Apr 2001 15:21:58 -0400	[thread overview]
Message-ID: <lEHC6.918$fB6.22907@news.cpqcorp.net> (raw)
In-Reply-To: 3AD12B02.CFD2333E@canb.auug.org.au


I think you want to also include the "-all" flag before your archive. I.e.

ld -shared -o fred.so fred.o stuff.o -hidden -all extras.a -none -non_hidden

You will probably also want to include at least "-lc" on the end of that to
avoid any "Unresolved Symbol" warnings. I usually use "cc" or "cxx" as the
driver to "ld" to do this which will include some libraries implicitly
(-lc, -lcxx, -lexc for instance).

Jeff Donsbach
Partners Engineering
Compaq Computer Corp

Michael Thomson <michael@canb.auug.org.au> wrote in message
news:3AD12B02.CFD2333E@canb.auug.org.au...
> Hi,
>
> I'm new to the Tru64 OS and am trying to port some software to the
> platform.
>
> The problem I am running into is the linker does not seem to be doing
> what "I think i'm trying to tell it"
>
> I have a archive library that I want to include in shared object but at
> the end of the so's creation I do not want to see any of the archives
> entry points externally available.
>
> I have been trying to use the -hidden and -none flags on the link and I
> cannot seem to get rid of the archives entry points.
>
> Anyone got any idea of what I'm doing wrong.
>
> ld -shared -o fred.so fred.o stuff.o -hidden extras.a
>
> If this is the wrong approach, what is the correct approach, Is there an
> option to specify a list of entry points are that to be externalized by
> the .so?
>
> Thanks,
> Michael.




      reply	other threads:[~2001-04-16 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-09  3:22 Linker Problems Michael Thomson
2001-04-16 19:21 ` Jeff Donsbach [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox