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:
parent
310623bb97
commit
5005d85d5f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user