From 1fbc8c2186642564a19205b2d07b3d7190cfdadd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 25 Dec 2011 11:00:11 +0100 Subject: s3: Fix linking on Lion We are using CoreFoundation functions in charset_macosx.c. We need to link against that. --- source3/configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/configure.in b/source3/configure.in index cbea99d18c..6f4300cc48 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -768,6 +768,14 @@ CPPFLAGS="-Iinclude $CPPFLAGS" AC_CHECK_HEADERS([CoreFoundation/CFStringEncodingConverter.h], [], [AC_CHECK_HEADERS([CFStringEncodingConverter.h])]) CPPFLAGS="$old_CPPFLAGS" +# To link lib/util/charset/charset_macosxfs.c, we need to tell the linker +# about CoreFoundation +case "$host_os" in + *darwin11*) + LDFLAGS="$LDFLAGS -framework CoreFoundation" + ;; +esac + # In valgrind 1.0.x, it's just valgrind.h. In 1.9.x+ there's a # subdirectory of headers. AC_CHECK_HEADERS(valgrind.h valgrind/valgrind.h valgrind/memcheck.h) -- cgit