[PATCH 2/4] Add subdir-objects automake option

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Freyther holger at freyther.de
Wed Jun 17 05:47:45 UTC 2015


> On 16 Jun 2015, at 23:23, Andreas Rottmann <mail at rotty.xx.vu> wrote:
> 
> From: Andreas Rottmann <a.rottmann at gmx.at>
> 
> Having subdir-objects enabled is recommended by automake 1.14, to avoid
> future incompatibilities.
> 
> However, adding that option breaks out-of-tree builds, and also seems to
> break "make distclean" for in-tree builds. The reason is that
> apparently, automake with subdir-objects enabled cannot cope with source
> files in a different, non-child directory. To avoid that, we simply
> compile the files referenced in this way into a static library in their
> own source directory, and instead of referencing the source files, we
> link against that library.
> 
> Besides making the build system a bit more future proof, this change
> also potentially enhances build times, as it reduces the number of
> compiler invocations, in exchange a slight increase of "ar" invocations.

That automake behavior is shameful. What would be the effort to get rid
off the recursive make?






More information about the OpenBSC mailing list