]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-build: Skip building the ndr_table at the tail of ndr_libnetapi.c
authorAndrew Bartlett <abartlet@samba.org>
Sun, 3 Nov 2019 23:12:02 +0000 (12:12 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 13 Nov 2019 00:32:37 +0000 (00:32 +0000)
This is not a real protocol and all the functions are set to nopull,nopush
but do not supply replacement functions.

This is the best was I could find to skip compiling the table as otherwise
it would point to undefined functions.

This does not happen until we generate the ndr_table for idl files without
a UUID, but we will shortly do that.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14191

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Pair-progammed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

source3/librpc/wscript_build

index 6bc3667f719e9c37523c53855100ebd031da4bcb..34cd96bebda22b1106aeb7366494a5feff159954 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 
 bld.SAMBA3_SUBSYSTEM('NDR_LIBNETAPI',
+        cflags="-D SKIP_NDR_TABLE_libnetapi",
        source='gen_ndr/ndr_libnetapi.c',
        public_deps='ndr',
        allow_warnings=True