From 4e5c7f45684a1171ff4d8e684d2f9a0a255582e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20M=C3=BCller?= Date: Thu, 24 Oct 2024 13:53:11 +0200 Subject: [PATCH] Fix build on gcc when using the spack wrapper (#5555) --- docs/CONTRIBUTORS | 1 + src/Makefile_obj.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 8c6aeba55..dae6f4082 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -45,6 +45,7 @@ Drew Ranck Drew Taussig Driss Hafdi Edgar E. Iglesias +Eric Müller Eric Rippey Ethan Sifferman Eyck Jentzsch diff --git a/src/Makefile_obj.in b/src/Makefile_obj.in index 18947923a..d29baa840 100644 --- a/src/Makefile_obj.in +++ b/src/Makefile_obj.in @@ -363,7 +363,7 @@ $(TGT): $(PREDEP_H) $(OBJS) .SECONDARY: %.gch: % - $(OBJCACHE) ${CXX} ${CXXFLAGS} ${CPPFLAGSWALL} ${CFG_CXXFLAGS_PCH} $< -o $@ + $(OBJCACHE) ${CXX} ${CXXFLAGS} ${CPPFLAGSWALL} ${CFG_CXXFLAGS_PCH} -c $< -o $@ %.o: %.cpp $(OBJCACHE) ${CXX} ${CXXFLAGS} ${CPPFLAGSWALL} -c $< -o $@ %.o: %.c