--- pypy/translator/platform/darwin.py.orig	2011-05-01 00:18:50.000000000 +1000
+++ pypy/translator/platform/darwin.py	2011-05-02 06:53:52.000000000 +1000
@@ -30,10 +30,12 @@
                 + args)
     
     def _include_dirs_for_libffi(self):
-        return ['/usr/include/ffi']
+        return self._pkg_config("libffi", "--cflags-only-I",
+                                ['/usr/include/ffi'])
 
     def _library_dirs_for_libffi(self):
-        return ['/usr/lib']
+        return self._pkg_config("libffi", "--libs-only-L",
+                                ['/usr/lib'])
 
     def check___thread(self):
         # currently __thread is not supported by Darwin gccs
