mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
Fix finding libpng in gbagfx and rsfont
On macOS 12, Homebrew installs libpng in a custom location.
This commit is contained in:
parent
ce227aa055
commit
f8b3a1c658
@ -1,8 +1,10 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK
|
CFLAGS = -Wall -Wextra -Werror -Wno-sign-compare -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK
|
||||||
|
CFLAGS += $(shell pkg-config --cflags libpng)
|
||||||
|
|
||||||
LIBS = -lpng -lz
|
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
|
SRCS = main.c convert_png.c gfx.c jasc_pal.c lz.c rl.c util.c font.c huff.c
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
|
|
||||||
CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK
|
CFLAGS = -Wall -Wextra -Werror -std=c11 -O2 -DPNG_SKIP_SETJMP_CHECK
|
||||||
|
CFLAGS += $(shell pkg-config --cflags libpng)
|
||||||
|
|
||||||
LIBS = -lpng -lz
|
LIBS = -lpng -lz
|
||||||
|
LDFLAGS += $(shell pkg-config --libs-only-L libpng)
|
||||||
|
|
||||||
SRCS = main.c convert_png.c util.c font.c
|
SRCS = main.c convert_png.c util.c font.c
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user