Skip to content

Commit

Permalink
Sync fix for libpng on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Sep 11, 2024
1 parent 714bd0a commit 00369ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/gbagfx/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
CC = gcc

CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -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 gfx.c jasc_pal.c lz.c rl.c util.c font.c huff.c

Expand Down
2 changes: 2 additions & 0 deletions tools/rsfont/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
CC = gcc

CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -s -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

Expand Down

0 comments on commit 00369ab

Please sign in to comment.