[SAMBA4][PATCH] allow srcdir and builddir to differ in the build
system
James Peach
jpeach at samba.org
Tue Dec 5 22:19:41 GMT 2006
Hi all,
I need to build Samba 4 in a very particular build system. This
creates a number of separate directory hierarchies, of which only
SRCROOT and OBJROOT concern. SRCROOT is a read-only copy of the source
tree you are trying to build. OBJROOT is a writeable directory where
all the built artifacts go (generated code, object files, binaries,
etc).
The "interesting" portions of the build go roughly like this:
cd OBJROOT && SRCROOT/configure --configure --flags --foo
make -C OBJROOT
At this point, we will have the original sources in SRCROOT and a pile
of generated sources in OBJROOT. The attached patch alters the Samba 4
build system so that this style of build works correctly. The main
issues are making sure that all the scripts generate and examine the
correct paths and to make sure that paths to both SRCROOT and OBJROOT
are passed to the compiler.
This patch does not fix the installheader target. It has been tested
only in the build environment described above.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-system-separate-srcdir-and-builddir
Type: application/octet-stream
Size: 13377 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20061205/cbaf1e0c/build-system-separate-srcdir-and-builddir.obj
-------------- next part --------------
--
James Peach | jpeach at samba.org
More information about the samba-technical
mailing list