Thread (10 messages) flat view 10 messages, 6 authors, 2000-01-05

Re: Linux ABI documents and powerpc supplements.

From: Michael Schmitz <hidden>
Date: 2000-01-05 10:19:30

quoted
-shared is used to *create* a shared library. You need -Bdynamic in
order to force the executable to be linked against shared libraries.
I think you are confusing the ld arguments and the gcc arguments.  ld uses -Bdynamic and -Bstatic
I think you misread the documentation. It has always been my understanding
that -static explicitly prevents linking to shared libraries (which is
otherwise the default), wheras -shared prepares an object to be used as
part of a shared library later:
`-shared'
     Produce a shared object which can then be linked with other
     objects to form an executable.  Not all systems support this
     option.  You must also specify `-fpic' or `-fPIC' on some systems
     when you specify this option.
That pretty much states it makes no sense using -shared in the final
linkage step for a binary.

	Michael


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help