From 11bca38696f219d62938c6a620dce2dadd9fe006 Mon Sep 17 00:00:00 2001 From: jacob Date: Tue, 29 Mar 2005 06:34:29 +0000 Subject: [PATCH] r=adilger r=phil include the version of the actual compiler we were compiled with. --- lustre/utils/Makefile.am | 1 + lustre/utils/wirecheck.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/Makefile.am b/lustre/utils/Makefile.am index 5704e85..8852c23 100644 --- a/lustre/utils/Makefile.am +++ b/lustre/utils/Makefile.am @@ -24,6 +24,7 @@ lfs_LDADD := $(LIBREADLINE) parser.o liblustreapi.a -lptlctl obd.o lload_LDADD := $(LIBREADLINE) -lptlctl liblustreapi_a_SOURCES = liblustreapi.c wirecheck_SOURCES = wirecheck.c +wirecheck_CPPFLAGS = -DCC=\"$(CC)\" wiretest_SOURCES = wiretest.c lctl_SOURCES = parser.c obd.c lustre_cfg.c lctl.c parser.h obdctl.h lload_SOURCES = lload.c diff --git a/lustre/utils/wirecheck.c b/lustre/utils/wirecheck.c index e9061d4..cc53e12 100644 --- a/lustre/utils/wirecheck.c +++ b/lustre/utils/wirecheck.c @@ -747,7 +747,7 @@ main(int argc, char **argv) char gccinfo[80]; system_string("uname -a", unameinfo, sizeof(unameinfo)); - system_string("gcc -v 2>&1 | tail -1", gccinfo, sizeof(gccinfo)); + system_string(CC " -v 2>&1 | tail -1", gccinfo, sizeof(gccinfo)); printf ("void lustre_assert_wire_constants(void)\n" "{\n" -- 1.8.3.1