Initial commit
This commit is contained in:
33
tools/libressl/Makefile
Normal file
33
tools/libressl/Makefile
Normal file
@@ -0,0 +1,33 @@
|
||||
#
|
||||
# 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:=2.9.2
|
||||
PKG_HASH:=c4c78167fae325b47aebd8beb54b6041d6f6a56b3743f4bd5d79b15642f9d5d4
|
||||
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
|
||||
|
||||
HOST_CONFIGURE_ARGS += --disable-shared
|
||||
HOST_CFLAGS += $(FPIC)
|
||||
|
||||
ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
|
||||
HOST_CONFIGURE_ARGS += --disable-asm
|
||||
endif
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
11
tools/libressl/patches/001-dont-build-tests-man.patch
Normal file
11
tools/libressl/patches/001-dont-build-tests-man.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -361,7 +361,7 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
-SUBDIRS = crypto ssl tls include apps tests man
|
||||
+SUBDIRS = crypto ssl tls include apps
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libcrypto.pc libssl.pc libtls.pc openssl.pc
|
||||
23
tools/libressl/patches/010-avoid-glibc.patch
Normal file
23
tools/libressl/patches/010-avoid-glibc.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From a747aacc23607c993cc481378782b2c7dd5bc53b Mon Sep 17 00:00:00 2001
|
||||
From: Ishimoto Shinobu <47295761+protonesso@users.noreply.github.com>
|
||||
Date: Tue, 21 May 2019 22:41:05 +0900
|
||||
Subject: [PATCH] avoid glibc
|
||||
|
||||
cause problems on musl systems
|
||||
---
|
||||
crypto/compat/getprogname_linux.c | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
--- a/crypto/compat/getprogname_linux.c
|
||||
+++ b/crypto/compat/getprogname_linux.c
|
||||
@@ -26,9 +26,7 @@ getprogname(void)
|
||||
#if defined(__ANDROID_API__) && __ANDROID_API__ < 21
|
||||
extern const char *__progname;
|
||||
return __progname;
|
||||
-#elif defined(__GLIBC__)
|
||||
- return program_invocation_short_name;
|
||||
#else
|
||||
-#error "Cannot emulate getprogname"
|
||||
+ return program_invocation_short_name;
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user