From a1e59ddc3d587616a66e19f5145c85c31a5ea942 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Tue, 4 Oct 2022 00:52:56 +0200 Subject: [PATCH] Avoid `-x c++` affecting `${PNGLDLIBS}` version.c doesn't link to anything from libpng, so it'll be fine --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 24adc478..a9bd2537 100644 --- a/Makefile +++ b/Makefile @@ -130,7 +130,7 @@ rgbfix: ${rgbfix_obj} $Q${CC} ${REALLDFLAGS} -o $@ ${rgbfix_obj} ${REALCFLAGS} src/version.c rgbgfx: ${rgbgfx_obj} - $Q${CXX} ${REALLDFLAGS} ${PNGLDFLAGS} -o $@ ${rgbgfx_obj} ${REALCXXFLAGS} -x c++ src/version.c ${PNGLDLIBS} + $Q${CXX} ${REALLDFLAGS} ${PNGLDFLAGS} -o $@ ${rgbgfx_obj} ${REALCXXFLAGS} ${PNGLDLIBS} -x c++ src/version.c test/gfx/randtilegen: test/gfx/randtilegen.c $Q${CC} ${REALLDFLAGS} ${PNGLDFLAGS} -o $@ $^ ${REALCFLAGS} ${PNGCFLAGS} ${PNGLDLIBS}