build _functools and _locale into the core library
diff --git a/configure.in b/configure.in
index 6937150..91f9a3b 100644
--- a/configure.in
+++ b/configure.in
@@ -1744,7 +1744,7 @@
 		# slowdown in stead of a speedup, maybe due to the large number of
 		# dynamic loads Python does.
 
-		LINKFORSHARED="$extra_undefs"
+		LINKFORSHARED="$extra_undefs -framework CoreFoundation"
 		if test "$enable_framework"
 		then
 			LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'