Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2011 00:23:20 +0200 (CEST)
From:      Niclas Zeising <niclas.zeising@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/158180: [PATCH] dns/sheerdns clang buildfix
Message-ID:  <201106222223.p5MMNKIc009217@vincent.daemonic.se>
Resent-Message-ID: <201106222230.p5MMUCos086578@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158180
>Category:       ports
>Synopsis:       [PATCH] dns/sheerdns clang buildfix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 22 22:30:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Niclas Zeising
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64


	
>Description:
	dns/sheerdns hardcodes ${CC}==gcc in makefile, and thus doesn't build with clang.
>How-To-Repeat:
	
>Fix:

	Attached patch removes the gcc hardcodeing to make it use clang if requested.

--- dns.sheerdns.clangfix.diff begins here ---
Index: files/patch-Makefile
===================================================================
RCS file: /home/ncvs/ports/dns/sheerdns/files/patch-Makefile,v
retrieving revision 1.1
diff -u -d -r1.1 patch-Makefile
--- files/patch-Makefile	2 Jun 2004 19:18:22 -0000	1.1
+++ files/patch-Makefile	22 Jun 2011 22:21:21 -0000
@@ -1,13 +1,31 @@
---- Makefile.orig	Sat Apr 12 10:04:41 2003
-+++ Makefile	Wed Jun  2 21:10:14 2004
-@@ -1,5 +1,5 @@
+--- Makefile.orig	2003-04-12 10:04:41.000000000 +0200
++++ Makefile	2011-06-23 00:18:51.000000000 +0200
+@@ -1,5 +1,6 @@
  
 -CFLAGS=-Wall -g -O0 -ansi -pedantic
++CC?=	gcc
 +CFLAGS+=-Wall -ansi -pedantic
  
  SRCS=$(wildcard *.c)
  
-@@ -26,7 +26,6 @@
+@@ -8,13 +9,13 @@
+ OBJECTS=$(SRCS:.c=.o)
+ 
+ sheerdns: $(OBJECTS)
+-	gcc -o sheerdns $(OBJECTS)
++	$(CC) -o sheerdns $(OBJECTS)
+ 
+ sheerdnshash: hash.c
+-	gcc $(CFLAGS) -o sheerdnshash hash.c -DSTANDALONE -Wall
++	$(CC) $(CFLAGS) -o sheerdnshash hash.c -DSTANDALONE -Wall
+ 
+ .c.o: $(SRCS)
+-	gcc $(CFLAGS) -c $<
++	$(CC) $(CFLAGS) -c $<
+ 
+ clean:
+ 	rm -f sheerdns sheerdnshash *.o
+@@ -26,7 +27,6 @@
  	groff -Tps -mandoc sheerdns.8 > sheerdns.ps
  
  install: all
--- dns.sheerdns.clangfix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106222223.p5MMNKIc009217>