You receive this bug because this package does not respect my system's AR ( x86_64-pc-linux-gnu-ar - /usr/bin/x86_64-pc-linux-gnu-ar ) and calls directly ar - /usr/bin/ar The possible solutions to fix this issue are: 1)Fix the buildsystem, if you can 2)inherit toolchain-funcs and use tc-export AR 3)inherit toolchain-funcs and use emake AR="$(tc-getAR)" ar rs libpgcommon.a gserialized_gist.o lwgeom_transform.o lwgeom_pg.o ar rs librtcore.a rt_api.o
# grep cpp postgis-2.0.3:20130407-094730.log checking for cpp... /usr/bin/cpp SQL preprocessor: /usr/bin/cpp -traditional-cpp -P /usr/bin/cpp -traditional-cpp -P -I../libpgcommon postgis.sql.in.c | grep -v '^#' > postgis.sql.in /usr/bin/cpp -traditional-cpp -P -I../libpgcommon legacy.sql.in.c | grep -v '^#' > legacy.sql.in /usr/bin/cpp -traditional-cpp -P -I../libpgcommon legacy_minimal.sql.in.c | grep -v '^#' > legacy_minimal.sql.in /usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis.sql.in.c | grep -v '^#' > rtpostgis.sql.in /usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_drop.sql.in.c | grep -v '^#' > rtpostgis_drop.sql.in /usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_upgrade_cleanup.sql.in.c | grep -v '^#' > rtpostgis_upgrade_cleanup.sql.in /usr/bin/cpp -traditional-cpp -P -I../../postgis/ -I../../ rtpostgis_legacy.sql.in.c | grep -v '^#' > rtpostgis_legacy.sql.in /usr/bin/cpp -traditional-cpp -P topology.sql.in.c | grep -v '^#' > topology.sql.in /usr/bin/cpp -traditional-cpp -P topology_drop_before.sql.in.c | grep -v '^#' > topology_drop_before.sql.in /usr/bin/cpp -traditional-cpp -P topology_drop_after.sql.in.c | grep -v '^#' > topology_drop_after.sql.in
Those are SQL files and the CPP is called with a separate variable -- $(SQLPP) instead of $(CPP) -- with specific arguments to produce them. Those SQL files are not further compiled into anything else. The build system doesn't override/ignore CPP{,FLAGS}. They did set AR instead of ARFLAGS in one Makefile.
Fixed in 2.1.0.