summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-05-22 17:15:32 +0200
committerStefan Metzmacher <metze@samba.org>2008-05-23 08:54:45 +0200
commit9301310ea73e43349f4e0b41343fe2a820327d40 (patch)
tree3d697d5b0819a3d167ce7dadac73bbe05282c427
parentd83931cb6e809b22eba5f1a8df1312cee9d4b19c (diff)
downloadsamba-9301310ea73e43349f4e0b41343fe2a820327d40.tar.gz
samba-9301310ea73e43349f4e0b41343fe2a820327d40.tar.bz2
samba-9301310ea73e43349f4e0b41343fe2a820327d40.zip
build: autogenerate exports/libnetapi.syms
metze (cherry picked from commit dc09e04d524dcc92a29da0864666fd4258a81b76) (This used to be commit c3797d6a2cc2e4c5b0678dc92924c26b18bd2678)
-rw-r--r--source3/Makefile.in7
-rw-r--r--source3/exports/libnetapi.syms3
2 files changed, 6 insertions, 4 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 1a970bf988..3fa9b4abda 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -161,6 +161,8 @@ LIBWBCLIENT=@LIBWBCLIENT_SHARED@
LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
LIBNETAPI=$(LIBNETAPI_STATIC_TARGET) @LIBNETAPI_SHARED@
+LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.syms
+LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
FLAGS1 = $(CFLAGS) @FLAGS1@ @SAMBA_CPPFLAGS@ $(CPPFLAGS)
FLAGS2 =
@@ -1647,7 +1649,10 @@ bin/libaddns.a: $(BINARY_PREREQS) $(LIBADDNS_OBJ)
@echo Linking non-shared library $@
@-$(AR) -rc $@ $(LIBADDNS_OBJ)
-$(LIBNETAPI_SHARED_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
+$(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
+ @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
+
+$(LIBNETAPI_SHARED_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
@echo Linking shared library $@
@$(SHLD_DSO) $(LIBNETAPI_OBJ) \
@LIBTALLOC_LIBS@ @LIBTDB_LIBS@ @LIBWBCLIENT_SHARED@ $(LIBS) \
diff --git a/source3/exports/libnetapi.syms b/source3/exports/libnetapi.syms
deleted file mode 100644
index eb34bfc012..0000000000
--- a/source3/exports/libnetapi.syms
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- global: *;
-};