[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Survey: Additional static target & libtool suppor
Re: [Discuss-gnuradio] Survey: Additional static target & libtool support in build system
Mon, 4 Feb 2019 14:07:39 +0000
I like that. I can't find a use case where I'd need both versions,
shared and statically linked.
On Mon, 2019-02-04 at 14:47 +0100, Andrej Rode wrote:
> Hi all,
> During my recent work on getting the GNU Radio build system on a more
> modern CMake foundation I stumbled upon some things I'd like to know
> if someone is using them. 
> 1. Currently each component in GNU Radio is compiled as shared
> _and_ optionally a static build can be done. Because of the way it's
> currently setup every source file is compiled twice anyway and a
> shared library is always compiled as well.
> In my quest to improve the build system I'd like to remove the second
> "optional" build target for static libraries and use the advised
> `BUILD_SHARED_LIBS` switch in CMake to _either_ build shared
> _or_ static libraries. This will require having a separate build
> directory for building shared & static libraries, but will simplify
> the syntax in our build system immensly.
> Building static-only libraries will be possible by specfiying
> 2. Optionally when specifiying `GENERATE_LIBTOOL` .la files are
> generated by the build system. According to a comment in the
> `GR_LIBTOOL` function those files are not compatible with auto-*
> anyway and our build system is already providing package config and
> CMake package configuration files. Is there still a user out there?
>  https://github.com/gnuradio/gnuradio/pull/2230
> Discuss-gnuradio mailing list