mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 05:38:00 +00:00
7012f2e18f
This SSL library is for hosts only
and not shipped as a build product,
therefore its performance quality (speed) is not critical.
Assembly code is broken in LibreSSL for some x86_64 hosts (part of git history)
and for some RISC host archs like armv7l, aarch64, powerpc, ppc64, etc...
so let's just disable it for all hosts.
For example, this fixes an instance on ARM hosts
where the host Python 3 builds broken modules which link to LibreSSL,
even with patches that enable LibreSSL support
with the import error "unexpected reloc type 3".
Ref: a395563f6
("build: fix libressl build on x32 (amd64ilp32) host ")
Suggested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Michael Pratt <mcpratt@pm.me>
38 lines
813 B
Makefile
38 lines
813 B
Makefile
#
|
|
# Copyright (C) 2016-2017 LEDE project
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libressl
|
|
PKG_VERSION:=3.5.3
|
|
PKG_HASH:=3ab5e5eaef69ce20c6b170ee64d785b42235f48f2e62b095fca5d7b6672b8b28
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_CPE_ID:=cpe:/a:openbsd:libressl
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://mirror.ox.ac.uk/pub/OpenBSD/LibreSSL \
|
|
http://ftp.jaist.ac.jp/pub/OpenBSD/LibreSSL \
|
|
https://ftp.openbsd.org/pub/OpenBSD/LibreSSL
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
HOSTCC := $(HOSTCC_NOCACHE)
|
|
|
|
HOST_CFLAGS += $(HOST_FPIC)
|
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
--enable-static \
|
|
--disable-shared \
|
|
--disable-asm \
|
|
--with-pic \
|
|
--disable-tests
|
|
|
|
$(eval $(call HostBuild))
|