Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2011 11:50:34 GMT
From:      Babak Farrokhi <farrokhi@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/163280: [patch] net/haproxy: respect CC and CFLAGS
Message-ID:  <201112141150.pBEBoYYv009621@red.freebsd.org>
Resent-Message-ID: <201112141200.pBEC0Zqq025962@freefall.freebsd.org>

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

>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:



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