]> git.draconx.ca Git - dxcommon.git/commit
Rewrite Gnulib symbols to be in libcdecl's namespace.
authorNick Bowler <nbowler@draconx.ca>
Wed, 21 Sep 2011 04:51:17 +0000 (00:51 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 22 Sep 2011 01:02:07 +0000 (21:02 -0400)
commit414e48faf73d99ea0242b13f3c22e64fb5adff64
tree9012ed07f326105c78829b9ebba8f18c02748281
parent0760e669cdb984633fffb2f99d20b019706ec597
Rewrite Gnulib symbols to be in libcdecl's namespace.

The gnulib symbols are not properly prefixed for libcdecl internal
symbols (e.g. cdecl__blah).  This *will* cause problems when statically
linking against both libcdecl and another library that uses the same
gnulib modules.

Unfortunately, there's no simple way to determine what symbols need
prefixing without compiling all the gnulib objects.  The results can't
be distributed either, because they depend on the configuration.  So,
limited to simple tools and portable make rules, we hack together a
"new" config.h at build time that defines object-like macros to rewrite
the symbols, carefully ensuring that header dependencies are correct.
scripts/fix-gnulib.pl
snippet/glconfig.mk [new file with mode: 0644]