f93ea03d0f
Fix the following build failure without stack-protector raised since bump to version 3.3.1 in commit3965f09cb4
and5b3cb7f35e
: /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: src/jitterentropy-base.o: in function `jent_fips_enabled': jitterentropy-base.c:(.text+0x131): undefined reference to `__stack_chk_fail_local' If stack-protector is enabled in the Buildroot config, the toolchain wrapper will make sure it is used, so there's no need for the jitterentropy-library Makefile to handle it. Fixes: - http://autobuild.buildroot.org/results/8de/8dee462d16d934dd173d58f17933c6911e4336bf/build-end.log Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
45 lines
1.6 KiB
Makefile
45 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# jitterentropy-library
|
|
#
|
|
################################################################################
|
|
|
|
JITTERENTROPY_LIBRARY_VERSION = 3.3.1
|
|
JITTERENTROPY_LIBRARY_SOURCE = \
|
|
jitterentropy-library-$(JITTERENTROPY_LIBRARY_VERSION).tar.xz
|
|
JITTERENTROPY_LIBRARY_SITE = http://www.chronox.de/jent
|
|
JITTERENTROPY_LIBRARY_LICENSE = GPL-2.0 or BSD-3-Clause
|
|
JITTERENTROPY_LIBRARY_LICENSE_FILES = LICENSE LICENSE.bsd LICENSE.gplv2
|
|
JITTERENTROPY_LIBRARY_INSTALL_STAGING = YES
|
|
JITTERENTROPY_LIBRARY_INSTALL_TARGETS = install-includes
|
|
JITTERENTROPY_LIBRARY_SELINUX_MODULES = entropyd
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
JITTERENTROPY_LIBRARY_BUILD_TARGETS += jitterentropy-static
|
|
JITTERENTROPY_LIBRARY_INSTALL_TARGETS += install-static
|
|
endif
|
|
|
|
ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
|
|
JITTERENTROPY_LIBRARY_BUILD_TARGETS += jitterentropy
|
|
JITTERENTROPY_LIBRARY_INSTALL_TARGETS += install-shared
|
|
endif
|
|
|
|
define JITTERENTROPY_LIBRARY_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
ENABLE_STACK_PROTECTOR=0 $(JITTERENTROPY_LIBRARY_BUILD_TARGETS)
|
|
endef
|
|
|
|
define JITTERENTROPY_LIBRARY_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) \
|
|
INSTALL_STRIP="install" PREFIX=/usr \
|
|
$(JITTERENTROPY_LIBRARY_INSTALL_TARGETS)
|
|
endef
|
|
|
|
define JITTERENTROPY_LIBRARY_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
|
INSTALL_STRIP="install" PREFIX=/usr \
|
|
$(JITTERENTROPY_LIBRARY_INSTALL_TARGETS)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|