forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 1.14 KB
/
Makefile
File metadata and controls
36 lines (26 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PKG_NAME = libgcrypt
PKG_VERS = 1.11.1
PKG_EXT = tar.bz2
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://gnupg.org/ftp/gcrypt/libgcrypt
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
DEPENDS = cross/libgpg-error
HOMEPAGE = https://gnupg.org/related_software/libgcrypt/
COMMENT = This is a general purpose cryptographic library based on the code from GnuPG.
LICENSE = LGPLv2.1+
GNU_CONFIGURE = 1
CONFIGURE_ARGS = --with-gpg-error-prefix=$(STAGING_INSTALL_PREFIX)
CONFIGURE_ARGS += --disable-doc
# error "The CPU Jitter random number generator must not be compiled with optimizations.
# See documentation. Use the compiler switch -O0 for compiling jitterentropy.c.
#CONFIGURE_ARGS += --disable-jent-support
# use -O0 (disable optimization) or -O3
# otherwise builds for 32-bit intel (i686, evansport) will fail with asm code
# ec-inline.h:666:5: error: 'asm' operand has impossible constraints
ADDITIONAL_CFLAGS = -O3
include ../../mk/spksrc.archs.mk
# avoid key generation failure for aarch64 (#5150)
ifeq ($(findstring $(ARCH),$(ARMv8_ARCHS)),$(ARCH))
CONFIGURE_ARGS += --disable-arm-crypto-support
endif
include ../../mk/spksrc.cross-cc.mk