bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to build gnulib for shared libraries?


From: Szabolcs Nagy
Subject: how to build gnulib for shared libraries?
Date: Fri, 14 Dec 2018 12:18:28 +0000
User-agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]