cfengine/core — pull request #890 by awsiv (2013-08-20 12:25:37+00:00)
Title: Avoid appending empty include dir to CPPFLAGS

Previously, this resulted in invalid compile options such as the following tokyocabinet test:
gcc -o conftest -pthread -g -O2 -O2 -DNDEBUG -I/usr/local/include -I conftest.c -ltokyocabinet

Resulting in the following output:
...
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 20 has invalid symbol index 19
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function _start':
(.text+0x20): undefined reference to 'main'
...

Due to : ` -I conftest.c` in the end