Avoid leaking C99 options into stock %{__cc} macro
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 4 Nov 2008 09:36:01 +0000 (11:36 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 4 Nov 2008 09:37:09 +0000 (11:37 +0200)
configure.ac
macros.in

index 03e8363..7c5b1dd 100644 (file)
@@ -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])
index 01f13c6..10a97cc 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -67,7 +67,7 @@
 #
 %__ar                  @AR@
 %__as                  @AS@
-%__cc                  @CC@
+%__cc                  @__CC@
 %__cpp                 @CPP@
 %__cxx                 @CXX@
 %__ld                  @__LD@