s3-VFS: Fix building out-of-tree modules.
authorRichard Sharpe <realrichardsharpe@gmail.com>
Tue, 8 May 2012 12:53:10 +0000 (14:53 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 30 Jun 2012 11:43:15 +0000 (13:43 +0200)
Fix bug #8822 (VFS module init function name has to be manually changed
depending on build environment).
(cherry picked from commit d2f4164e3db2c341ff3a1b35a68f691848c9a859)
(cherry picked from commit ca9538bcd8ac153ab7d9bc21dab01d702d13c554)

examples/VFS/Makefile.in

index 8fe414a9e8c6e00bfb19ad67ec90d2e527160300..98d259f04032e84b89a7d3c45d8314a03957e49e 100644 (file)
@@ -36,7 +36,7 @@ default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
 
 %.$(OBJEXT): %.c
        @echo "Compiling $<"
-       @$(CC) $(FLAGS) -c $<
+       @$(CC) $(FLAGS) -c $< -D$*_init=init_samba_module
 
 
 install: default