mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
* Update license information. Since 8.0 redis is distributed under triple license of (a) the Redis Source Available License v2 (RSALv2) or (b) the Server Side Public License v1 (SSPLv1) or (c) the GNU Affero General Public License v3 (AGPLv3). * Add entry to UPDATING. ChangeLog: https://github.com/redis/redis/releases/tag/8.0.0
40 lines
997 B
Plaintext
40 lines
997 B
Plaintext
--- src/Makefile.orig 2025-05-02 11:15:06 UTC
|
|
+++ src/Makefile
|
|
@@ -67,7 +67,7 @@ endif
|
|
STD+=-std=c99
|
|
endif
|
|
|
|
-PREFIX?=/usr/local
|
|
+PREFIX:=$(PREFIX)
|
|
INSTALL_BIN=$(PREFIX)/bin
|
|
INSTALL=install
|
|
PKG_CONFIG?=pkg-config
|
|
@@ -131,7 +131,6 @@ FINAL_LIBS=-lm -lstdc++
|
|
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
|
FINAL_LDFLAGS=$(LDFLAGS) $(OPT) $(REDIS_LDFLAGS) $(DEBUG)
|
|
FINAL_LIBS=-lm -lstdc++
|
|
-DEBUG=-g -ggdb
|
|
|
|
# Linux ARM32 needs -latomic at linking time
|
|
ifneq (,$(findstring armv,$(uname_M)))
|
|
@@ -170,6 +169,11 @@ else
|
|
OPENSSL_PREFIX?=/usr/local/opt/openssl
|
|
endif
|
|
else
|
|
+ifeq ($(uname_S),FreeBSD)
|
|
+ # FreeBSD
|
|
+ FINAL_CFLAGS?= $(CFLAGS) $(REDIS_CFLAGS) -I${PREFIX}/include
|
|
+ FINAL_LDFLAGS= $(LDFLAGS) -pthread
|
|
+else
|
|
ifeq ($(uname_S),AIX)
|
|
# AIX
|
|
FINAL_LDFLAGS+= -Wl,-bexpall
|
|
@@ -219,6 +223,7 @@ else
|
|
# All the other OSes (notably Linux)
|
|
FINAL_LDFLAGS+= -rdynamic
|
|
FINAL_LIBS+=-ldl -pthread -lrt
|
|
+endif
|
|
endif
|
|
endif
|
|
endif
|