1ad05acb1e
Fix the following static build failure with openssl raised since bump to
version 1.3.3 in commit 163509a8e0
:
/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sh4-buildroot-linux-uclibc/10.3.0/../../../../sh4-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-3/output-1/host/sh4-buildroot-linux-uclibc/sysroot/usr/lib/libssl.a(rec_layer_d1.o): in function `DTLS_RECORD_LAYER_new':
rec_layer_d1.c:(.text+0x124): undefined reference to `CRYPTO_malloc'
Fixes:
- http://autobuild.buildroot.org/results/75ad8515916dfa056b17c97fdd95c7eb4d83a304
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# htpdate
|
|
#
|
|
################################################################################
|
|
|
|
HTPDATE_VERSION = 1.3.3
|
|
HTPDATE_SITE = $(call github,twekkel,htpdate,v$(HTPDATE_VERSION))
|
|
HTPDATE_LICENSE = GPL-2.0+
|
|
HTPDATE_LICENSE_FILES = LICENSE
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
HTPDATE_BUILD_OPTS = \
|
|
https \
|
|
SSL_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
|
HTPDATE_DEPENDENCIES += openssl host-pkgconf
|
|
endif
|
|
|
|
define HTPDATE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(HTPDATE_BUILD_OPTS)
|
|
endef
|
|
|
|
define HTPDATE_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
define HTPDATE_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/htpdate/S43htpdate \
|
|
$(TARGET_DIR)/etc/init.d/S43htpdate
|
|
endef
|
|
|
|
define HTPDATE_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 package/htpdate/htpdate.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/htpdate.service
|
|
endef
|
|
|
|
$(eval $(generic-package))
|