aboutsummaryrefslogtreecommitdiff
path: root/security/krb5
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2005-11-25 19:40:48 +0000
committerCy Schubert <cy@FreeBSD.org>2005-11-25 19:40:48 +0000
commit2a73db5a4a19c1b568b8928abca813e7eefe6c74 (patch)
tree606e930b12f0d2f431ba3e7d92c6ad1793a6987d /security/krb5
parentc82cbcada806678930bbed1809141634ee65095a (diff)
downloadports-2a73db5a4a19c1b568b8928abca813e7eefe6c74.tar.gz
ports-2a73db5a4a19c1b568b8928abca813e7eefe6c74.zip
Notes
Diffstat (limited to 'security/krb5')
-rw-r--r--security/krb5/Makefile9
-rw-r--r--security/krb5/files/patch-config::shlib.conf15
2 files changed, 13 insertions, 11 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile
index 82b7ecfa45de..6abb738ead81 100644
--- a/security/krb5/Makefile
+++ b/security/krb5/Makefile
@@ -29,7 +29,8 @@ GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ARGS?= --enable-shared --enable-static
CONFIGURE_ARGS+= --disable-thread-support
-CONFIGURE_ENV= INSTALL="${INSTALL}" YACC=/usr/bin/yacc
+CONFIGURE_ENV= INSTALL="${INSTALL}" YACC=/usr/bin/yacc \
+ CFLAGS="${CFLAGS}"
MAKE_ARGS= INSTALL="${INSTALL}"
KRB5_KRB4_COMPAT?= NO
@@ -71,12 +72,6 @@ HTML_OUTDIRS= krb5-admin krb5-install
.include <bsd.port.pre.mk>
-.if ${ARCH} == "sparc64"
-CONFIGURE_ENV+= CFLAGS="-fPIC ${CFLAGS}"
-.else
-CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
-.endif
-
post-extract:
@${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
@${RM} ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz.asc
diff --git a/security/krb5/files/patch-config::shlib.conf b/security/krb5/files/patch-config::shlib.conf
index afd4eb259ea2..a489ac3a34dd 100644
--- a/security/krb5/files/patch-config::shlib.conf
+++ b/security/krb5/files/patch-config::shlib.conf
@@ -1,7 +1,14 @@
---- config/shlib.conf.orig Sun Mar 2 23:09:45 2003
-+++ config/shlib.conf Tue Jul 29 18:16:43 2003
-@@ -179,14 +179,15 @@
- PICFLAGS=-fpic
+--- config/shlib.conf.orig Thu Apr 7 14:38:55 2005
++++ config/shlib.conf Wed Nov 23 16:32:40 2005
+@@ -238,17 +238,21 @@
+ else
+ objformat="aout"
+ fi
+- PICFLAGS=-fpic
++ case $krb5_cv_host in
++ sparc64-*) PICFLAGS=-fPIC;;
++ *) PICFLAGS=-fpic;;
++ esac
if test "x$objformat" = "xelf" ; then
SHLIBVEXT='.so.$(LIBMAJOR)'
+ LDCOMBINE="libtool15 --mode=link cc -shared"