talloc linking / include magic

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

Harald Welte laforge at gnumonks.org
Fri May 6 11:44:54 UTC 2011


Hi Pablo,

there is one more thing that would prevent libosmocore from being
packaged by distributions right now:  We include our own version of
talloc.  Debian, Fedora and Ubuntu e.g. by now have a shared libtalloc
that we should probably use instead of our own copy.

So what I'd like to see is:
* split talloc.c from libosmocore and make a libosmotalloc instead
* some autotools magic in the applications (openbsc, osmoocom-bb,
  osmo-tetra, etc.) that would try to
  # detect whether there is a system-wide libtalloc, if yes use it
  # if no, use libosmotalloc

The only big question is how to deal with header files, as we do
	#include <osmocom/core/talloc.h>
and in case of the system-wide libtalloc it should instead be
	#include <talloc.h>

I don't really have a good idea how to handle this. Any ideas?

Regards,
	Harald
-- 
- Harald Welte <laforge at gnumonks.org>           http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)




More information about the OpenBSC mailing list