The hardening check during the debian build process showed that the
hardening compile flags are not issued to the compilation process of
PSPP.c (the perl module) and q2c.c (the lexer). Although q2c.c is only
relevant during the build process hardening this will not hurt.
echo ');') > $(top_builddir)/perl-module/pspp-module-config
perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config $(module_sources)
- $(AM_V_GEN)cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix)
+ $(AM_V_GEN)cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix) \
+ OPTIMIZE="$(CFLAGS) $(CPPFLAGS)" \
+ LD="`$(PERL) -V::ld:` $(LDFLAGS)"
perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
$(AM_V_at)rm -f $@
src/language/lexer/q2c$(EXEEXT_FOR_BUILD): $(top_srcdir)/src/language/lexer/q2c.c
@$(MKDIR_P) `dirname $@`
- $(AM_V_GEN)$(CC_FOR_BUILD) $(top_srcdir)/src/language/lexer/q2c.c -o $(top_builddir)/src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
+ $(AM_V_GEN)$(CC_FOR_BUILD) $(top_srcdir)/src/language/lexer/q2c.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $(top_builddir)/src/language/lexer/q2c$(EXEEXT_FOR_BUILD)
CLEANFILES += src/language/lexer/q2c$(EXEEXT_FOR_BUILD)