Browse Source

check: fix fortify source compatibility

Let `./configure` assume C99 compliant `snprintf()` and `vsnprintf()` functions
by passing the required cache variables via `CONFIGURE_VARS`.

Fixes fortify-source related undeclared function errors when compiling the
`tests/` directory.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
lilik-openwrt-22.03
Jo-Philipp Wich 10 years ago
parent
commit
72a483f759
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libs/check/Makefile

+ 4
- 1
libs/check/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=check PKG_NAME:=check
PKG_VERSION:=0.9.14 PKG_VERSION:=0.9.14
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/check PKG_SOURCE_URL:=@SF/check
@ -40,6 +40,9 @@ define Package/check/description
endef endef
TARGET_CFLAGS += $(FPIC) TARGET_CFLAGS += $(FPIC)
CONFIGURE_VARS += \
hw_cv_func_snprintf_c99=yes \
hw_cv_func_vsnprintf_c99=yes \
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(INSTALL_DIR) $(1)/usr/include


Loading…
Cancel
Save