From aa33c3223874dd4e1b4b331e23dfd085a3ff1f1e Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 14 Jan 2012 19:11:29 +0000 Subject: [PATCH] - Respect CC and CFLAGS PR: 163280 Submitted by: farrokhi@ Approved by: maintainer timeout --- net/haproxy/files/patch-Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 net/haproxy/files/patch-Makefile diff --git a/net/haproxy/files/patch-Makefile b/net/haproxy/files/patch-Makefile new file mode 100644 index 000000000000..83445bb9d446 --- /dev/null +++ b/net/haproxy/files/patch-Makefile @@ -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