summaryrefslogtreecommitdiff
path: root/security/krb4
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2004-02-23 14:03:37 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2004-02-23 14:03:37 +0000
commitb3cb478760700f0faf22f10fce3bb86881291bd8 (patch)
tree70e4ae04dedcdd02fc1829bcca3bea8ce5bcb280 /security/krb4
parentPut CFLAGS in CONFIGURE_ENV (diff)
On amd64, include -fPIC in CFLAGS.
PR: ports/63200 Reported by: Hendrik Scholz <hendrik@scholz.net>
Notes
Notes: svn path=/head/; revision=101862
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 78616edb0c97..26a6ba935d0b 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>