diff options
author | nox <nox@FreeBSD.org> | 2011-06-23 07:25:31 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2011-06-23 07:25:31 +0800 |
commit | 32d3a4fc66d4e96353a644dbd1d860557d4de255 (patch) | |
tree | 2e8812b143f0ce72d2f862783491f31019115852 /dns/sheerdns | |
parent | 661559f1da68fec9d997440ee3794010023704a4 (diff) | |
download | freebsd-ports-gnome-32d3a4fc66d4e96353a644dbd1d860557d4de255.tar.gz freebsd-ports-gnome-32d3a4fc66d4e96353a644dbd1d860557d4de255.tar.zst freebsd-ports-gnome-32d3a4fc66d4e96353a644dbd1d860557d4de255.zip |
Fix build with clang.
PR: ports/158180
Submitted by: Niclas Zeising <niclas.zeising@gmail.com>
Diffstat (limited to 'dns/sheerdns')
-rw-r--r-- | dns/sheerdns/files/patch-Makefile | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/dns/sheerdns/files/patch-Makefile b/dns/sheerdns/files/patch-Makefile index 4a8cb2eb90c5..6b9e1674f9a7 100644 --- a/dns/sheerdns/files/patch-Makefile +++ b/dns/sheerdns/files/patch-Makefile @@ -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 |