bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* how to build gnulib for shared libraries?
@ 2018-12-14 12:18 Szabolcs Nagy
  2018-12-20  3:18 ` Bruno Haible
  0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2018-12-14 12:18 UTC (permalink / raw)
  To: bug-gnulib@gnu.org; +Cc: nd

by default gnulib is not built with -fPIC so it is not
suitable for shared libraries.

is there an easy way to build gnulib .a with -fPIC so
it can be used with shared libraries and executables as
well within the same project?

only elf targets need to be supported so ideally all
gnulib replacement symbols should have hidden visibility,
object files should be built only once (with -fPIC) and
no configure checks per target binary as suggested by
https://www.gnu.org/software/gnulib/manual/html_node/Multiple-instances.html
nor libtool dependency.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-03 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14 12:18 how to build gnulib for shared libraries? Szabolcs Nagy
2018-12-20  3:18 ` Bruno Haible
2019-01-03 15:58   ` Szabolcs Nagy

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).