# HG changeset patch # User Matti Hamalainen # Date 1508630157 -10800 # Node ID 253a1fd1fc82320015ec199f7e95dc3507d99c59 # Parent a35b392a40ce606c514438623ba1a544eed755c0 Use pkg-config for libpng. diff -r a35b392a40ce -r 253a1fd1fc82 Makefile --- a/Makefile Sat Oct 21 11:47:00 2017 +0300 +++ b/Makefile Sun Oct 22 02:55:57 2017 +0300 @@ -26,8 +26,9 @@ # For Solaris you may need: #CFLAGS += -DHAVE_UINT_T -LIBPNG_CFLAGS += -DHAVE_LIBPNG -LIBPNG_LDFLAGS += -lpng +LIBPNG_CFLAGS += -DHAVE_LIBPNG `pkg-config --cflags libpng` +LIBPNG_LDFLAGS += `pkg-config --libs libpng` + ### ### Unix targets