mcst-linux-kernel/patches-2024.06.26/haproxy-1.8.20/001-makefile_correction.patch

26 lines
645 B
Diff

diff -Naur old/Makefile new/Makefile
--- old/Makefile 2019-04-25 21:59:27.000000000 +0000
+++ new/Makefile 2019-07-05 13:05:56.396487379 +0000
@@ -110,10 +110,10 @@
#### Installation options.
DESTDIR =
-PREFIX = /usr/local
+PREFIX ?= /usr/local
SBINDIR = $(PREFIX)/sbin
MANDIR = $(PREFIX)/share/man
-DOCDIR = $(PREFIX)/doc/haproxy
+DOCDIR = $(PREFIX)/share/doc/haproxy
#### TARGET system
# Use TARGET=<target_name> to optimize for a specifc target OS among the
@@ -137,7 +137,7 @@
#### Toolchain options.
# GCC is normally used both for compiling and linking.
-CC = gcc
+CC ?= gcc
LD = $(CC)
#### Debug flags (typically "-g").