From 3412b5258bd7777b796c5987cdc6091f2ec7c294 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Fri, 16 Jul 2021 22:40:40 -0700 Subject: [PATCH] include physfs cflags --- Makefile.am | 3 ++- configure.ac | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 89b0d460..1b60f55c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,8 @@ EXTRA_PROGRAMS = d2x d2x-sdl d2x-gl d2x-svga miner miner-sdl miner-gl miner-svga # Common to all d2x platforms/options -d2x_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/main -I$(top_srcdir)/arch/include +d2x_CPPFLAGS = $(PHYSFS_CFLAGS) \ +-I$(top_srcdir)/include -I$(top_srcdir)/main -I$(top_srcdir)/arch/include d2x_SOURCES = \ 2d/2dsline.c 2d/box.c 2d/disc.c 2d/ibitblt.c 2d/pcx.c 2d/rect.c 2d/scalec.c \ diff --git a/configure.ac b/configure.ac index 5a808260..8673c639 100644 --- a/configure.ac +++ b/configure.ac @@ -205,6 +205,7 @@ else AC_CHECK_LIB(physfs, PHYSFS_init, PHYSFS_LIBS="-lphysfs", [AC_MSG_ERROR([physfs library required])]) ) + AC_SUBST(PHYSFS_CFLAGS) AC_SUBST(PHYSFS_LIBS) # Check for OpenGL -- 2.39.2