]> git.draconx.ca Git - cdecl99.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)
commit0892826aa94d87f7313dc83b6d934776a149c14b
tree02e4611b92166a7763ea9fa85e370da7fb440958
parentf4092929ddf589b9bb52df61ba623febeb81cb94
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.
.gitignore
Makefile.am
configure.ac
exported.sh.in [new file with mode: 0644]
fix-gnulib.pl
glconfig.mk [new file with mode: 0644]