mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-25 23:51:08 +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)
28 lines
672 B
Makefile
28 lines
672 B
Makefile
modules-$(CONFIG_QRENCODE) += qrencode
|
|
|
|
qrencode_version := 3.4.4
|
|
qrencode_dir := qrencode-$(qrencode_version)
|
|
qrencode_tar := qrencode-$(qrencode_version).tar.gz
|
|
qrencode_url := https://fukuchi.org/works/qrencode/$(qrencode_tar)
|
|
qrencode_hash := e794e26a96019013c0e3665cb06b18992668f352c5553d0a553f5d144f7f2a72
|
|
|
|
qrencode_libraries := .libs/libqrencode.so.3
|
|
|
|
qrencode_configure := \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
$(CROSS_TOOLS) \
|
|
--prefix "/" \
|
|
--without-tools \
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
|
|
qrencode_target := \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS) \
|
|
&& $(MAKE) \
|
|
-C "$(build)/$(qrencode_dir)" \
|
|
DESTDIR="$(INSTALL)" \
|
|
install
|
|
|
|
qrencode_depends := $(musl_dep)
|