depot/third_party/nixpkgs/pkgs/applications/science/astronomy/gildas/cpp-darwin.patch
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

17 lines
415 B
Diff

diff --git a/admin/Makefile.def b/admin/Makefile.def
index 0395d9d4f0..932d18f102 100644
--- a/admin/Makefile.def
+++ b/admin/Makefile.def
@@ -228,7 +228,11 @@ GLOBAL_DIRTY = $(builddir) *~ TAGS ChangeLog* Makefile.bak
# Fortran preprocessing
# Preprocessor command
-CPP = cpp
+ifdef GAG_CPP
+ CPP = $(GAG_CPP)
+else
+ CPP = cpp
+endif
# Preprocessor generic flags
GLOBAL_CPPFLAGS += -P -traditional -C