From 9a509e9f1acc27fdce547a47513e9d083a17b6d4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 4 Nov 2008 11:36:01 +0200 Subject: [PATCH] Avoid leaking C99 options into stock %{__cc} macro --- configure.ac | 1 + macros.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 03e8363..7c5b1dd 100644 --- a/configure.ac +++ b/configure.ac @@ -23,6 +23,7 @@ AC_PROG_MAKE_SET AC_PROG_LIBTOOL AC_PROG_YACC +AC_SUBST(__CC, $CC) AC_PROG_CC_C99 if test "$ac_cv_prog_cc_c99" = no; then AC_MSG_ERROR([ISO C99 capable compiler required]) diff --git a/macros.in b/macros.in index 01f13c6..10a97cc 100644 --- a/macros.in +++ b/macros.in @@ -67,7 +67,7 @@ # %__ar @AR@ %__as @AS@ -%__cc @CC@ +%__cc @__CC@ %__cpp @CPP@ %__cxx @CXX@ %__ld @__LD@ -- 2.7.4