83aeec71fd
Override CPPFLAGS to fix the following build failure with BR2_OPTIMIZE_0 raised since bump to version 0.14.0 in commitcd707a9112
and0e7b2b0300
: /home/autobuild/autobuild/instance-15/output-1/host/i686-buildroot-linux-gnu/sysroot/usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] configure adds -D_FORTIFY_SOURCE to CPPFLAGS if it is not already defined. However, we don't want _FORTIFY_SOURCE to be enabled unless it's enabled by Buildroot (for exactly the above reason). Therefore, override CPPFLAGS in th build step to remove _FORTIFY_SOURCE again. It should be noted that upstream already rejected a PR to remove -Werror: https://github.com/smuellerDD/libkcapi/pull/132 Fixes: - http://autobuild.buildroot.org/results/35141ea3046f5a4593e0b27ef92e4ace6bc0be66 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libkcapi
|
|
#
|
|
################################################################################
|
|
|
|
LIBKCAPI_VERSION = 1.1.5
|
|
LIBKCAPI_SOURCE = libkcapi-$(LIBKCAPI_VERSION).tar.xz
|
|
LIBKCAPI_SITE = http://www.chronox.de/libkcapi
|
|
LIBKCAPI_AUTORECONF = YES
|
|
LIBKCAPI_INSTALL_STAGING = YES
|
|
LIBKCAPI_LICENSE = BSD-3-Clause (library), BSD-3-Clause or GPL-2.0 (programs)
|
|
LIBKCAPI_LICENSE_FILES = COPYING COPYING.gplv2 COPYING.bsd
|
|
LIBKCAPI_CONF_ENV = \
|
|
ac_cv_path_DB2PDF="" \
|
|
ac_cv_path_DB2PS="" \
|
|
ac_cv_path_XMLTO=""
|
|
LIBKCAPI_MAKE_OPTS = CPPFLAGS="$(TARGET_CPPFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBKCAPI_ENCAPP),y)
|
|
LIBKCAPI_CONF_OPTS += --enable-kcapi-encapp
|
|
else
|
|
LIBKCAPI_CONF_OPTS += --disable-kcapi-encapp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBKCAPI_HASHER),y)
|
|
LIBKCAPI_CONF_OPTS += --enable-kcapi-hasher
|
|
else
|
|
LIBKCAPI_CONF_OPTS += --disable-kcapi-hasher
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBKCAPI_RNGAPP),y)
|
|
LIBKCAPI_CONF_OPTS += --enable-kcapi-rngapp
|
|
else
|
|
LIBKCAPI_CONF_OPTS += --disable-kcapi-rngapp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBKCAPI_SPEED),y)
|
|
LIBKCAPI_CONF_OPTS += --enable-kcapi-speed
|
|
else
|
|
LIBKCAPI_CONF_OPTS += --disable-kcapi-speed
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBKCAPI_TEST),y)
|
|
LIBKCAPI_CONF_OPTS += --enable-kcapi-test
|
|
else
|
|
LIBKCAPI_CONF_OPTS += --disable-kcapi-test
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|