]> granicus.if.org Git - pdns/commitdiff
default to gcc for c files
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 25 Apr 2006 14:05:21 +0000 (14:05 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 25 Apr 2006 14:05:21 +0000 (14:05 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@766 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/sysdeps-recursor/Linux.inc
pdns/sysdeps-recursor/SunOS.inc

index 58988ca19f5a9832d6c260f10f45071c41b063a0..eb6f14b22b0478e86d1995ccb2f6eb021ef7e3d0 100644 (file)
@@ -1,5 +1,9 @@
 OPTIONALS:=optional/epollmplexer.o
 OS_SPECIFIC_INSTALL=mkdir -p $(DESTDIR)/etc/init.d ; cp pdns-recursor.init.d $(DESTDIR)/etc/init.d/pdns-recursor
+
+ifeq ($(CC),cc)
+       CC:=gcc
+endif
        
 optional/epollmplexer.o: epollmplexer.cc
        $(CXX) $(CXXFLAGS) -c $< -o $@ ; true
index a43bfd0d2a3f00dc15c0dd33c5c21e8fd893e758..9de0800cd2d399932936ae2386ca4f400f2abcf8 100644 (file)
@@ -1,4 +1,7 @@
-CC=gcc
+ifeq ($(CC),cc)
+       CC:=gcc
+endif
+
 LDFLAGS+=-lresolv -lsocket -lnsl
 OS_SPECIFIC_INSTALL=mkdir -p $(DESTDIR)/etc/init.d ; cp pdns-recursor.init.d $(DESTDIR)/etc/init.d/pdns-recursor