Skip to content

Commit

Permalink
Replaced sdl-config within pkg-config
Browse files Browse the repository at this point in the history
Replaced old `sdl-config` within universal `pkg-config sdl2`.
`sdl-config` is not available on many systems.
  • Loading branch information
BillKek authored and sobomax committed Nov 7, 2023
1 parent 0392f05 commit b150d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ endif

ifeq ($(ARCH),FREEBSD)
OBJS += fbsd_sup.o # strup()
RCFLAGS += -DFREEBSD $(shell sdl2-config --cflags)
LIBS += $(shell sdl2-config --libs) -lz -lm -lX11
RCFLAGS += -DFREEBSD $(shell pkg-config sdl2 --cflags)
LIBS += $(shell pkg-config sdl2 --libs) -lz -lm -lX11
ESUFFIX =
endif

ifeq ($(ARCH),LINUX)
OBJS += fbsd_sup.o # strup()
RCFLAGS += -DLINUX $(shell sdl2-config --cflags)
LIBS += $(shell sdl2-config --libs) -lz -lm -lX11
RCFLAGS += -DLINUX $(shell pkg-config sdl2 --cflags)
LIBS += $(shell pkg-config sdl2 --libs) -lz -lm -lX11
ESUFFIX =
endif

Expand Down

0 comments on commit b150d9f

Please sign in to comment.