summaryrefslogtreecommitdiffstats
path: root/security/krb4
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2004-02-23 14:03:37 +0000
committernectar <nectar@FreeBSD.org>2004-02-23 14:03:37 +0000
commitfc0f54d89d7c754687ffb770a323f289b5881647 (patch)
tree5d3b18d8f4b81d1deae8a09e1a0b0b4995ac50f2 /security/krb4
parent8ef883d51728485a37ba13505dba9b5c04ed5db5 (diff)
downloadFreeBSD-ports-fc0f54d89d7c754687ffb770a323f289b5881647.zip
FreeBSD-ports-fc0f54d89d7c754687ffb770a323f289b5881647.tar.gz
On amd64, include -fPIC in CFLAGS.
PR: ports/63200 Reported by: Hendrik Scholz <hendrik@scholz.net>
Diffstat (limited to 'security/krb4')
-rw-r--r--security/krb4/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/krb4/Makefile b/security/krb4/Makefile
index 78616ed..26a6ba9 100644
--- a/security/krb4/Makefile
+++ b/security/krb4/Makefile
@@ -27,6 +27,7 @@ CONFIGURE_ARGS+= \
--disable-afs-support \
--without-x
CONFIGURE_ENV+= \
+ "CFLAGS=${CFLAGS}" \
"CPPFLAGS=-DOPENSSL_DES_LIBDES_COMPATIBILITY" \
"LDFLAGS=-Wl,-rpath,${PREFIX}/lib"
@@ -45,4 +46,8 @@ setuids:
.endfor
.include "Makefile.man"
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud