Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2013 10:25:17 GMT
From:      Natacha Porté <natbsd@instinctive.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182226: dns/ddns: fix build without gcc for current
Message-ID:  <201309191025.r8JAPHS5077570@oldred.freebsd.org>
Resent-Message-ID: <201309191030.r8JAU0gk080606@freefall.freebsd.org>

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

>Number:         182226
>Category:       ports
>Synopsis:       dns/ddns: fix build without gcc for current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 19 10:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Natacha Porté
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD bifrost 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0 r252111M: Sun Jun 23 14:31:39 CEST 2013     root@bifrost:/usr/obj/usr/src-STABLE/9.1/sys/GENERIC  amd64
>Description:
- update BSDmakefile to use CC, CFLAGS and LDFLAGS from environment when possible

redports build at https://redports.org/buildarchive/20130919093801-5576/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Naur ddns.orig/files/patch-BSDmakefile ddns/files/patch-BSDmakefile
--- ddns.orig/files/patch-BSDmakefile   1970-01-01 01:00:00.000000000 +0100
+++ ddns/files/patch-BSDmakefile        2013-09-19 12:20:52.799904304 +0200
@@ -0,0 +1,30 @@
+--- ./BSDmakefile.orig 2013-09-19 11:31:40.022802767 +0200
++++ ./BSDmakefile      2013-09-19 11:32:24.482713883 +0200
+@@ -16,9 +16,9 @@
+ 
+ DEPDIR=depends
+ ALLDEPS=$(DEPDIR)/all
+-CFLAGS=-c -g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
+-LDFLAGS=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
+-CC=gcc
++CFLAGS?=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
++LDFLAGS?=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
++CC?=gcc
+ 
+ default:      ddns-client ddns-server
+ 
+@@ -83,7 +83,7 @@
+       @$(CC) -MM $(.IMPSRC) > $(DEPDIR)/$(.PREFIX).d
+       @grep -q "$(.PREFIX).d" $(ALLDEPS) \
+                       || echo ".include \"$(.PREFIX).d\"" >> $(ALLDEPS)
+-      $(CC) $(CFLAGS) -o $(.TARGET) $(.IMPSRC)
++      $(CC) $(CFLAGS) -c -o $(.TARGET) $(.IMPSRC)
+ 
+ .m.o:
+       @mkdir -p $(DEPDIR)
+@@ -91,4 +91,4 @@
+       @$(CC) -MM $(.IMPSRC) > depends/$(.PREFIX).d
+       @grep -q "$(.PREFIX).d" $(ALLDEPS) \
+                       || echo ".include \"$(.PREFIX).d\"" >> $(ALLDEPS)
+-      $(CC) $(CFLAGS) -o $(.TARGET) $(.IMPSRC)
++      $(CC) $(CFLAGS) -c -o $(.TARGET) $(.IMPSRC)


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



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