[Glibc-bsd-commits] r4943 - trunk/kfreebsd-10/debian

Robert Millan rmh at alioth.debian.org
Sun Sep 15 12:54:27 UTC 2013


Author: rmh
Date: 2013-09-15 12:54:26 +0000 (Sun, 15 Sep 2013)
New Revision: 4943

Modified:
   trunk/kfreebsd-10/debian/changelog
   trunk/kfreebsd-10/debian/rules
Log:
Properly set CLANG_IS_CC knob according to selected compiler.

Modified: trunk/kfreebsd-10/debian/changelog
===================================================================
--- trunk/kfreebsd-10/debian/changelog	2013-09-15 12:51:43 UTC (rev 4942)
+++ trunk/kfreebsd-10/debian/changelog	2013-09-15 12:54:26 UTC (rev 4943)
@@ -2,6 +2,7 @@
 
   * Remove one gratuitous round of src copying.
   * Disable -Werror only for non-Clang compilers.
+  * Properly set CLANG_IS_CC knob according to selected compiler.
 
  -- Robert Millan <rmh at debian.org>  Sat, 14 Sep 2013 14:34:07 +0200
 

Modified: trunk/kfreebsd-10/debian/rules
===================================================================
--- trunk/kfreebsd-10/debian/rules	2013-09-15 12:51:43 UTC (rev 4942)
+++ trunk/kfreebsd-10/debian/rules	2013-09-15 12:54:26 UTC (rev 4943)
@@ -47,13 +47,13 @@
 MAKE		:= make MACHINE_ARCH=$(kfreebsd_cpu) -DWITHOUT_SOURCELESS
 PATH		:= /usr/lib/freebsd:$(PATH)
 
-ifneq ($(cc_cmd), clang)
-# Disable -Werror only for non-Clang compilers
-MAKE		+= WERROR=
+ifeq ($(cc_cmd), clang)
+MAKE	+= -DWITH_CLANG_IS_CC
+else
+MAKE	+= -DWITHOUT_CLANG_IS_CC
+MAKE	+= WERROR=
 endif
 
-MAKE += -DWITHOUT_CLANG_IS_CC
-
 MAKE += -DWITHOUT_CTF
 
 # Disable install of *.ko.symbols files (their presence would trigger an




More information about the Glibc-bsd-commits mailing list