6a8dae6ddd
Fix the following build failure without SSP raised since the addition of
the package in commit f0d37e275a
:
/home/autobuild/autobuild/instance-5/output-1/host/lib/gcc/i686-buildroot-linux-musl/9.4.0/../../../../i686-buildroot-linux-musl/bin/ld: talloc.c.5.o: in function `_vasprintf_tc':
talloc.c:(.text+0x427d): undefined reference to `__stack_chk_fail_local'
Fixes:
- http://autobuild.buildroot.org/results/e221bde25c7622db99761d0adcd56663296beb15
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
55 lines
1.9 KiB
Makefile
55 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# libtalloc
|
|
#
|
|
################################################################################
|
|
|
|
LIBTALLOC_VERSION = 2.3.3
|
|
LIBTALLOC_SOURCE = talloc-$(LIBTALLOC_VERSION).tar.gz
|
|
LIBTALLOC_SITE = https://www.samba.org/ftp/talloc
|
|
LIBTALLOC_LICENSE = LGPL-3.0+
|
|
LIBTALLOC_LICENSE_FILES = talloc.h
|
|
LIBTALLOC_INSTALL_STAGING = YES
|
|
|
|
# --with-libiconv= is unconditionally passed, even if libiconv is not
|
|
# present. Indeed, waf will search for libiconv by default in
|
|
# /usr/local. Because of a bug in some waf python script, /usr/local
|
|
# is then used in many subsequent and unrelated checks, which
|
|
# ultimately causes a failure when BR2_COMPILER_PARANOID_UNSAFE_PATH
|
|
# is set. However no need to set libiconv as a dependency of
|
|
# libtalloc since it's optional.
|
|
LIBTALLOC_CONF_OPTS += --cross-compile \
|
|
--cross-answers=$(@D)/cache.txt \
|
|
--disable-stack-protector \
|
|
--hostcc=gcc \
|
|
--with-libiconv=$(STAGING_DIR)/usr
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
LIBTALLOC_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
|
|
LIBTALLOC_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
|
|
LIBTALLOC_DEPENDENCIES += libtirpc host-pkgconf
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
LIBTALLOC_DEPENDENCIES += host-python3 python3
|
|
LIBTALLOC_CONF_ENV += \
|
|
PYTHON="$(HOST_DIR)/bin/python3" \
|
|
PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config"
|
|
# There isn't any --enable-python configuration option
|
|
else
|
|
LIBTALLOC_CONF_OPTS += --disable-python
|
|
endif
|
|
|
|
LIBTALLOC_WAF = ./buildtools/bin/waf
|
|
|
|
# like samba4, libtalloc uses the waf build system which requires a
|
|
# proper answers file to configure package before build
|
|
define LIBTALLOC_POPULATE_WAF_CACHE
|
|
$(INSTALL) -m 0644 package/libtalloc/libtalloc-cache.txt $(@D)/cache.txt
|
|
echo 'Checking uname machine type: $(BR2_ARCH)' >> $(@D)/cache.txt
|
|
endef
|
|
|
|
LIBTALLOC_PRE_CONFIGURE_HOOKS += LIBTALLOC_POPULATE_WAF_CACHE
|
|
|
|
$(eval $(waf-package))
|