Skip to content

Commit a279683

Browse files
committed
WIP
1 parent 57d08ef commit a279683

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,11 @@ endif
534534
$(eval $(call depend,PNGQUANT,LIBLCMS LIBPNG LIBZ))
535535
$(PNGQUANT_TARGET) : export OVERRIDE_BIN_DIR = $(LIBPNG_DIR)/override-bin
536536
$(PNGQUANT_TARGET) : export PATH := $(OVERRIDE_BIN_DIR):$(PATH)
537+
ifdef IS_LINUX
538+
$(PNGQUANT_TARGET) : export RUSTFLAGS = -C link-arg=$(XORIGIN)
539+
endif
537540
$(PNGQUANT_TARGET) :
538541
mkdir -p $(OVERRIDE_BIN_DIR)
539542
cd $(OVERRIDE_BIN_DIR) && printf '%s\n' '#!/bin/sh' 'echo 1.5' > libpng-config && chmod +x libpng-config
540543
cd $(DIR) && cargo build --release --frozen --offline --target=$(RUST_HOST)
544+
$(call chrpath_origin,$@)

0 commit comments

Comments
 (0)