diff options
author | miwi <miwi@FreeBSD.org> | 2012-01-15 03:11:29 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-01-15 03:11:29 +0800 |
commit | e2ee4ddb2bccfa560e78a923fbc81f670a2d979e (patch) | |
tree | 87e45923eb63518ac6638f33793ce7e360c5daf5 /net/haproxy | |
parent | 34bbf220a7ff89bcea3fd8d7fa5fd48d35934d35 (diff) | |
download | freebsd-ports-gnome-e2ee4ddb2bccfa560e78a923fbc81f670a2d979e.tar.gz freebsd-ports-gnome-e2ee4ddb2bccfa560e78a923fbc81f670a2d979e.tar.zst freebsd-ports-gnome-e2ee4ddb2bccfa560e78a923fbc81f670a2d979e.zip |
- Respect CC and CFLAGS
PR: 163280
Submitted by: farrokhi@
Approved by: maintainer timeout
Diffstat (limited to 'net/haproxy')
-rw-r--r-- | net/haproxy/files/patch-Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
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 |