1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

databases/redis*: Properly reference _ADDFLAGS set by some opt_VARS

opt_VARS always upcases its argument, so the defined(_addflags)
check will never be true.

The _ADDFLAGS block overwrites the global CFLAGS and LDFLAGS which
is also suspicous and probably not quite right.

Reported by:	portscan
This commit is contained in:
Tobias Kortkamp 2021-09-03 15:01:59 +02:00
parent 310623bb97
commit 5005d85d5f
No known key found for this signature in database
GPG Key ID: A4F09FB73CC51F61
3 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= redis
PORTVERSION= 6.2.5
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://download.redis.io/releases/
PKGNAMESUFFIX= -devel
@ -62,7 +63,7 @@ USE_GCC= yes
CFLAGS+= -march=i586
.endif
.if defined(_addflags)
.if defined(_ADDFLAGS)
CFLAGS= -fPIC
LDFLAGS= -Wl,-E
.endif

View File

@ -2,6 +2,7 @@
PORTNAME= redis
PORTVERSION= 6.2.5
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://download.redis.io/releases/
@ -61,7 +62,7 @@ USE_GCC= yes
CFLAGS+= -march=i586
.endif
.if defined(_addflags)
.if defined(_ADDFLAGS)
CFLAGS= -fPIC
LDFLAGS= -Wl,-E
.endif

View File

@ -2,6 +2,7 @@
PORTNAME= redis6
PORTVERSION= 6.0.15
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= https://download.redis.io/releases/
DISTNAME= redis-${PORTVERSION}
@ -62,7 +63,7 @@ USE_GCC= yes
CFLAGS+= -march=i586
.endif
.if defined(_addflags)
.if defined(_ADDFLAGS)
CFLAGS= -fPIC
LDFLAGS= -Wl,-E
.endif