Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Dec 1997 16:18:59 -0800 (PST)
From:      Jeffrey Hsu <hsu>
To:        jb@freebsd1.cimlogic.com.au
Cc:        hackers@hub.freebsd.org
Subject:   Re: shared library with static Motif?
Message-ID:  <199712070018.QAA27468@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
  > > But, aside from legalities the real issue hasn't been answered.  Is it
  > > *technically* possible to link in a 'static' library into a 'shared'
  > > library so that the end-user doesn't need a Motif library to get access
  > > to the shared library?
  >
  > Yes (I think 8-). You still use ld -Bshareable so that you get a shared
  > object, but you list the Motif static libraries with the objects that you
  > link into your shared library. The linker (should) then resolve all Motif
  > references in your shared library, leaving the X11 ones as external
  > references to the X shared libraries.
  >
  > Just don't use the -l option to search for libraries because ld will
  > try to translate these to shared libraries. Use an explicit reference
  > like /usr/lib/X11/libXm.a

I tried that.  You get the dreaded RSS relocation error messages because
the routines in libXm.a weren't meant to be used in a shared library.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712070018.QAA27468>