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)
35 lines
938 B
Makefile
35 lines
938 B
Makefile
modules-$(CONFIG_CAIRO) += cairo
|
|
|
|
cairo_version := 1.14.12
|
|
cairo_dir := cairo-$(cairo_version)
|
|
cairo_tar := cairo-$(cairo_version).tar.xz
|
|
cairo_url := https://www.cairographics.org/releases/$(cairo_tar)
|
|
cairo_hash := 8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16
|
|
|
|
cairo_configure := \
|
|
CFLAGS="-DCAIRO_NO_MUTEX=1 -Os" \
|
|
$(CROSS_TOOLS) \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
--prefix="/" \
|
|
--disable-xlib --disable-xcb --disable-pdf \
|
|
--disable-ps --disable-svg --disable-script \
|
|
--disable-ft --disable-fc --disable-pthread \
|
|
--disable-gobject \
|
|
&& sed \
|
|
-e 's/^hardcode_libdir_flag_spec.*/hardcode_libdir_flag_spec=" -D__LIBTOOL_RPATH_DISABLE__ "/' \
|
|
< libtool \
|
|
> libtool-2 \
|
|
&& mv libtool-2 libtool \
|
|
&& chmod 755 libtool
|
|
|
|
cairo_target := \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install
|
|
|
|
cairo_libraries := src/.libs/libcairo.so.2
|
|
|
|
cairo_depends := pixman $(musl_dep)
|