ref: a1e59ddc3d587616a66e19f5145c85c31a5ea942
parent: 3fbdba31bfa9af2660e2c7dc8d106d6110edd159
author: ISSOtm <eldredhabert0@gmail.com>
date: Mon Oct 3 20:52:56 EDT 2022
Avoid `-x c++` affecting `${PNGLDLIBS}` version.c doesn't link to anything from libpng, so it'll be fine
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@
$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}