ports/163280: [patch] net/haproxy: respect CC and CFLAGS
Babak Farrokhi
farrokhi at FreeBSD.org
Wed Dec 14 12:00:35 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list