summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/python.mk
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/python.mk')
-rw-r--r--source4/lib/ldb/python.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/lib/ldb/python.mk b/source4/lib/ldb/python.mk
index 45f4f044ba..a672c079a2 100644
--- a/source4/lib/ldb/python.mk
+++ b/source4/lib/ldb/python.mk
@@ -1,10 +1,8 @@
[PYTHON::swig_ldb]
-LIBRARY_REALNAME = _ldb.$(SHLIBEXT)
-PUBLIC_DEPENDENCIES = LIBLDB LIBEVENTS
+LIBRARY_REALNAME = ldb.$(SHLIBEXT)
+PUBLIC_DEPENDENCIES = LIBLDB LIBEVENTS PYTALLOC
-swig_ldb_OBJ_FILES = $(ldbsrcdir)/ldb_wrap.o
+swig_ldb_OBJ_FILES = $(ldbsrcdir)/pyldb.o
$(swig_ldb_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)/include
-$(eval $(call python_py_module_template,ldb.py,$(ldbsrcdir)/ldb.py))
-
-$(swig_ldb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
+$(swig_ldb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_CAST_QUAL)