From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 14 12:00:35 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA0AF10657A8 for ; Wed, 14 Dec 2011 12:00:35 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6B6868FC0A for ; Wed, 14 Dec 2011 12:00:35 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBEC0ZDw025968 for ; Wed, 14 Dec 2011 12:00:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBEC0Zqq025962; Wed, 14 Dec 2011 12:00:35 GMT (envelope-from gnats) Resent-Date: Wed, 14 Dec 2011 12:00:35 GMT Resent-Message-Id: <201112141200.pBEC0Zqq025962@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Babak Farrokhi Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7102106567A for ; Wed, 14 Dec 2011 11:50:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B67EB8FC0A for ; Wed, 14 Dec 2011 11:50:34 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBEBoYEv009622 for ; Wed, 14 Dec 2011 11:50:34 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id pBEBoYYv009621; Wed, 14 Dec 2011 11:50:34 GMT (envelope-from nobody) Message-Id: <201112141150.pBEBoYYv009621@red.freebsd.org> Date: Wed, 14 Dec 2011 11:50:34 GMT From: Babak Farrokhi To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/163280: [patch] net/haproxy: respect CC and CFLAGS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2011 12:00:35 -0000 >Number: 163280 >Category: ports >Synopsis: [patch] net/haproxy: respect CC and CFLAGS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 14 12:00:34 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Babak Farrokhi >Release: 9.0-RC2 >Organization: >Environment: FreeBSD rad01 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 2011 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN haproxy.orig/files/patch-Makefile haproxy/files/patch-Makefile --- haproxy.orig/files/patch-Makefile 1970-01-01 03:30:00.000000000 +0330 +++ haproxy/files/patch-Makefile 2011-12-14 14:15:46.000000000 +0330 @@ -0,0 +1,29 @@ +--- Makefile.orig ++++ Makefile +@@ -62,7 +62,7 @@ + + #### Installation options. + DESTDIR = +-PREFIX = /usr/local ++PREFIX? = /usr/local + SBINDIR = $(PREFIX)/sbin + MANDIR = $(PREFIX)/share/man + DOCDIR = $(PREFIX)/doc/haproxy +@@ -89,7 +89,7 @@ + + #### Toolchain options. + # GCC is normally used both for compiling and linking. +-CC = gcc ++CC? = gcc + LD = $(CC) + + #### Debug flags (typically "-g"). +@@ -158,7 +158,7 @@ + # These CFLAGS contain general optimization options, CPU-specific optimizations + # and debug flags. They may be overridden by some distributions which prefer to + # set all of them at once instead of playing with the CPU and DEBUG variables. +-CFLAGS = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS) $(SPEC_CFLAGS) ++CFLAGS? = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS) $(SPEC_CFLAGS) + + #### Common LDFLAGS + # These LDFLAGS are used as the first "ld" options, regardless of any library >Release-Note: >Audit-Trail: >Unformatted: