From 110c2045b5fcac8559a6ecabba3850f8ba091601 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 4 Mar 2008 19:25:12 +0000 Subject: [PATCH] Add "-framework CoreFoundation" to crypto library link command in darwin-mode build on mac. ticket: 5894 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20253 dc483132-0cff-0310-8789-dd5450dbe970 --- src/configure.in | 7 +++++++ src/lib/crypto/Makefile.in | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/configure.in b/src/configure.in index d010d0388..362df0459 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1012,6 +1012,13 @@ case $krb5_cv_host in esac AC_SUBST(SUPPORTLIB_MAJOR) dnl +dnl On the Mac we need CoreFoundation for UCS-2 conversion for RC4. +case $krb5_cv_host in +*-*-darwin* | *-*-rhapsody*) CRYPTO_LIBS="-framework CoreFoundation" ;; +*) CRYPTO_LIBS="" ;; +esac +AC_SUBST(CRYPTO_LIBS) +dnl dnl if test "$COM_ERR_VERSION" = k5 ; then K5_GEN_MAKEFILE(util/et) diff --git a/src/lib/crypto/Makefile.in b/src/lib/crypto/Makefile.in index 12172f98a..e0cbf8c34 100644 --- a/src/lib/crypto/Makefile.in +++ b/src/lib/crypto/Makefile.in @@ -168,7 +168,7 @@ SUBDIROBJLISTS=crc32/OBJS.ST des/OBJS.ST dk/OBJS.ST enc_provider/OBJS.ST \ # link editor and loader support it. DEPLIBS= SHLIB_DIRS=-L$(TOPLIBD) -SHLIB_EXPLIBS= $(SUPPORT_LIB) $(LIBS) +SHLIB_EXPLIBS= $(SUPPORT_LIB) @CRYPTO_LIBS@ $(LIBS) SHLIB_EXPDEPLIBS= $(SUPPORT_DEPLIB) SHLIB_LDFLAGS= $(LDFLAGS) @SHLIB_RPATH_DIRS@ SHLIB_LIBDIRS= @SHLIB_LIBDIRS@ -- 2.26.2