]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix mingw build without sasl
authorEric Blake <eblake@redhat.com>
Tue, 11 Oct 2011 22:22:44 +0000 (16:22 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 11 Oct 2011 22:30:25 +0000 (16:30 -0600)
Detected by autogen.sh on a cross-mingw build:

Creating library file: .libs/libvirt.dll.a
Cannot export virNetSASLContextCheckIdentity: symbol not defined
Cannot export virNetSASLContextNewServer: symbol not defined
...

* src/libvirt_private.syms (virnetsaslcontext.h): Move symbols...
* src/libvirt_sasl.syms: ...to new file.
* src/Makefile.am (USED_SYM_FILES) [HAVE_SASL]: Use new file.
(EXTRA_DIST): Ship it.

src/Makefile.am
src/libvirt_private.syms
src/libvirt_sasl.syms [new file with mode: 0644]

index 272dfbfc5a39201f5b447c022885db388b245403..302d395d01700dffb4f0fe5715064593b2b7c8c7 100644 (file)
@@ -1188,18 +1188,23 @@ if WITH_NETWORK
 USED_SYM_FILES += libvirt_network.syms
 endif
 
+if HAVE_SASL
+USED_SYM_FILES += libvirt_sasl.syms
+endif
+
 EXTRA_DIST += \
   libvirt_public.syms          \
   libvirt_private.syms         \
   libvirt_driver_modules.syms  \
   libvirt_bridge.syms          \
+  libvirt_daemon.syms          \
   libvirt_linux.syms           \
   libvirt_macvtap.syms         \
-  libvirt_daemon.syms          \
-  libvirt_nwfilter.syms        \
+  libvirt_network.syms         \
+  libvirt_nwfilter.syms                \
+  libvirt_sasl.syms            \
   libvirt_vmx.syms             \
-  libvirt_xenxs.syms           \
-  libvirt_network.syms
+  libvirt_xenxs.syms
 
 GENERATED_SYM_FILES = libvirt.syms libvirt.def libvirt_qemu.def
 
index d79f65c9556f192198f1f540dcd63d0afc50c3e6..caf9f593dad21f07d993e704b776f3fa62708ed2 100644 (file)
@@ -1178,20 +1178,6 @@ virNetMessageQueueServe;
 virNetMessageSaveError;
 
 
-# virnetsaslcontext.h
-virNetSASLContextCheckIdentity;
-virNetSASLContextNewServer;
-virNetSASLSessionExtKeySize;
-virNetSASLSessionFree;
-virNetSASLSessionGetIdentity;
-virNetSASLSessionGetKeySize;
-virNetSASLSessionListMechanisms;
-virNetSASLSessionNewServer;
-virNetSASLSessionSecProps;
-virNetSASLSessionServerStart;
-virNetSASLSessionServerStep;
-
-
 # virnetserver.h
 virNetServerAddProgram;
 virNetServerAddService;
@@ -1232,7 +1218,6 @@ virNetServerClientSendMessage;
 virNetServerClientSetCloseHook;
 virNetServerClientSetIdentity;
 virNetServerClientSetPrivateData;
-virNetServerClientSetSASLSession;
 
 
 # virnetserverprogram.h
diff --git a/src/libvirt_sasl.syms b/src/libvirt_sasl.syms
new file mode 100644 (file)
index 0000000..2c278c8
--- /dev/null
@@ -0,0 +1,20 @@
+#
+# SASL-specific symbols
+#
+
+# virnetsaslcontext.h
+virNetSASLContextCheckIdentity;
+virNetSASLContextNewServer;
+virNetSASLSessionExtKeySize;
+virNetSASLSessionFree;
+virNetSASLSessionGetIdentity;
+virNetSASLSessionGetKeySize;
+virNetSASLSessionListMechanisms;
+virNetSASLSessionNewServer;
+virNetSASLSessionSecProps;
+virNetSASLSessionServerStart;
+virNetSASLSessionServerStep;
+
+
+# virnetserverclient.h
+virNetServerClientSetSASLSession;