Skip to content

Commit

Permalink
Use pkg-config on Windows when available. Also fix linking for previo…
Browse files Browse the repository at this point in the history
…us Rtools43.
  • Loading branch information
kalibera authored and s-u committed Nov 27, 2023
1 parent 6dc8d75 commit 19fb6ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Makevars.ucrt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
PKG_LIBS = -ltiff -ljpeg -lz -lzstd -lwebp -llzma
ifeq (,$(shell pkg-config --version 2>/dev/null))
LIBSHARPYUV = $(or $(and $(wildcard $(R_TOOLS_SOFT)/lib/libsharpyuv.a),-lsharpyuv),)
PKG_LIBS = -ltiff -ljpeg -lz -lzstd -lwebp $(LIBSHARPYUV) -llzma
else
PKG_LIBS = $(shell pkg-config --libs libtiff-4)
endif

all: clean

Expand Down

0 comments on commit 19fb6ff

Please sign in to comment.