diff --git a/buildout/hooks/libdb-hooks.py b/buildout/hooks/libdb-hooks.py
new file mode 100644
index 0000000000000000000000000000000000000000..4086880bd3282dcd2112a5b1763e167d184154ee
--- /dev/null
+++ b/buildout/hooks/libdb-hooks.py
@@ -0,0 +1,3 @@
+import os
+def pre_configure_hook(options, buildout):
+  os.chdir('build_unix')