Skip to content

Commit 57d08ef

Browse files
committed
WIP
1 parent cf65894 commit 57d08ef

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Makefile

+5-8
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,9 @@ endif
532532

533533
## pngquant
534534
$(eval $(call depend,PNGQUANT,LIBLCMS LIBPNG LIBZ))
535-
$(PNGQUANT_TARGET) : export DEP_PNG_INCLUDE = $(LIBPNG_DIR)
536-
$(PNGQUANT_TARGET) : export DEP_Z_INCLUDE = $(LIBZ_DIR)
537-
$(PNGQUANT_TARGET) : export LCMS2_LIB_DIR = $(LIBLCMS_DIR)
538-
ifdef IS_LINUX
539-
$(PNGQUANT_TARGET) : export RUSTFLAGS = -C link-arg=$(XORIGIN)
540-
endif
535+
$(PNGQUANT_TARGET) : export OVERRIDE_BIN_DIR = $(LIBPNG_DIR)/override-bin
536+
$(PNGQUANT_TARGET) : export PATH := $(OVERRIDE_BIN_DIR):$(PATH)
541537
$(PNGQUANT_TARGET) :
542-
cd $(DIR) && cargo build --features=lcms2 --release --frozen --offline --target=$(RUST_HOST)
543-
$(call chrpath_origin,$@)
538+
mkdir -p $(OVERRIDE_BIN_DIR)
539+
cd $(OVERRIDE_BIN_DIR) && printf '%s\n' '#!/bin/sh' 'echo 1.5' > libpng-config && chmod +x libpng-config
540+
cd $(DIR) && cargo build --release --frozen --offline --target=$(RUST_HOST)

0 commit comments

Comments
 (0)