mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Respect CC and CFLAGS
PR: 163280 Submitted by: farrokhi@ Approved by: maintainer timeout
This commit is contained in:
parent
5bab0323a8
commit
aa33c32238
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289199
1 changed files with 29 additions and 0 deletions
29
net/haproxy/files/patch-Makefile
Normal file
29
net/haproxy/files/patch-Makefile
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue