perl : fix build without compiler optimization
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 6 Aug 2016 11:09:15 +0000 (13:09 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 6 Aug 2016 11:10:00 +0000 (13:10 +0200)
commit5acef0c9d1ea126dcd5ad0d71df7fd25ecf60e47
treeca3c2a20a43e923e055c9d7d157b0bd17bbf3bf6
parentd1bc5fb594a846ce31e4326bc81520a58b6310f8
perl : fix build without compiler optimization

CC       perl_la-perl.lo
In file included from /usr/include/stdio.h:27:0,
                 from ./daemon/collectd.h:34,
                 from perl.c:36:
/usr/include/features.h:331:4: error: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Werror=cpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
cc1: all warnings being treated as errors
Makefile:4439: recipe for target 'perl_la-perl.lo' failed
make[3]: *** [perl_la-perl.lo] Error 1

ccflags contains the flags used to compile libperl itself, not the ones
needed for compiling code that uses it. Switch to perl_inc which just
returns the neccesary include flags

Fixes #1858
configure.ac