changeset 1763:253a1fd1fc82

Use pkg-config for libpng.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 22 Oct 2017 02:55:57 +0300
parents a35b392a40ce
children 9616745ab5d3
files Makefile
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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