mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
907e906f01
Adresses @easrentai suggestion to pass modules build optimization for space here: #590 (comment) - Uniformized module's $(CROSS_TOOLS) being passed as environment variable, prior of ./configure call Doesn't work for: - busybox (HOSTCXXFLAGS="-Os" attempted prior of ./configure call) - zlib (CFLAGS="-Os" attempted prior of ./configure call) - npth (CFLAGS="-Os" attempted prior of ./configure call)
27 lines
713 B
Makefile
27 lines
713 B
Makefile
modules-$(CONFIG_GPG2) += libgcrypt
|
|
|
|
libgcrypt_version := 1.8.6
|
|
libgcrypt_dir := libgcrypt-$(libgcrypt_version)
|
|
libgcrypt_tar := libgcrypt-$(libgcrypt_version).tar.bz2
|
|
libgcrypt_url := https://gnupg.org/ftp/gcrypt/libgcrypt/$(libgcrypt_tar)
|
|
libgcrypt_hash := 0cba2700617b99fc33864a0c16b1fa7fdf9781d9ed3509f5d767178e5fd7b975
|
|
|
|
libgcrypt_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
--host=$(MUSL_ARCH)-linux-musl \
|
|
--prefix "/" \
|
|
--disable-static \
|
|
--with-gpg-error-prefix="$(INSTALL)" \
|
|
--disable-asm \
|
|
|
|
libgcrypt_target := $(MAKE_JOBS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
$(CROSS_TOOLS) \
|
|
install \
|
|
|
|
libgcrypt_libraries := src/.libs/libgcrypt.so.20
|
|
|
|
libgcrypt_depends := libgpg-error $(musl_dep)
|