From 9efcec167b91f049a7d1c01a34994b77f76d65b7 Mon Sep 17 00:00:00 2001 From: Gamr13 <48205338+Gamr13@users.noreply.github.com> Date: Sun, 7 May 2023 21:11:54 +0100 Subject: [PATCH] Update Makefile --- tools/rsfont/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/rsfont/Makefile b/tools/rsfont/Makefile index abe1cab51..55b2e8ab2 100644 --- a/tools/rsfont/Makefile +++ b/tools/rsfont/Makefile @@ -1,8 +1,10 @@ CC = gcc CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK +CFLAGS += $(shell pkg-config --cflags libpng) LIBS = -lpng -lz +LDFLAGS += $(shell pkg-config --libs-only-L libpng) SRCS = main.c convert_png.c util.c font.c