ntpd: fix fortify source compatibility 1486/head
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 26 Jun 2015 15:09:13 +0000 (17:09 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 26 Jun 2015 15:17:13 +0000 (17:17 +0200)
commitcbf11196b75119d40c6632e3a1585d5b4997fc01
treee3896e54ca6f7094a7faec6872d65908252230a2
parent940c522cf694b87a58a20152401d9dbe7f0a935c
ntpd: fix fortify source compatibility

The ntpd package ships autoconf macros which attempt to test for the C99
compliance of `snprintf()` and `vsnprintf()`.

Those macros unconditionally consider the functions not compliant in a cross
compile setting and therfore break all subsequent configure tests because
the `snprintf` and `vsnprintf` symbols are shadowed with `#define` directives
redirecting them to their respectiv gnulib replacements.

The fortify source headers in turn will `#undef` those defines when wrapping
the associated functions and therfore cause all `conftest` programs to emit
a failure.

Pass the required magic autoconf cache variables via `CONFIGURE_VARS` to let
`./configure` assume C99 compliance of the affected functions, thus fixing
the build.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
net/ntpd/Makefile