Skip to content

Commit 271d396

Browse files
authored
Merge pull request #316 from kalibera/win-linking-pkgconfig
Use png from the system via pkg-config.
2 parents 34ac7ce + dacbcba commit 271d396

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Makevars.ucrt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
CRT=-ucrt
2-
include Makevars.win
1+
ifeq (,$(shell pkg-config --version 2>/dev/null))
2+
PKG_LIBS = -lpng -lz
3+
else
4+
PKG_CPPFLAGS = $(shell pkg-config --cflags libpng)
5+
PKG_LIBS = $(shell pkg-config --libs libpng)
6+
endif
7+
8+
PKG_CPPFLAGS += -DSTRICT_R_HEADERS

0 commit comments

Comments
 (0)