The new autotools-based DS build system needs to support for building multiple architectures from one source tree. This will allow us to do things like: - Create arch directory and cd into it - run configure and make from the arch directory You should be able to repeat this for as many build architectures as you want from one source tree. We need to make sure that any files generated during the build go into the build area, not the source area. The following attachment makes the necessary changes to support the scenario described above. I have omitted the generated Makefile.in file since it is generated directly from the attached Makefile.am changes by running autoreconf.
Created attachment 138734 [details] Proposed Fix
Looks good. How do you use it?
There's really little difference in building with these changes. Instead of running "./configure; make" inside the ldapserver directory, you would create a subdirectory for the architecture you are building for (such as "ldapserver/RHEL4_DBG"). You would then cd into the "RHEL4_DBG" directory and run "../configure". This will create the Makefile in the RHEL4_DBG directory, so you would just run Make from there. All of the built files will be placed in the subdirectory that you created instead of in the checked out source tree.
Checked into ldapserver (HEAD). Thanks to Rich for the review!
Checking in Makefile.am; /cvs/dirsec/ldapserver/Makefile.am,v <-- Makefile.am new revision: 1.2; previous revision: 1.1 done Checking in Makefile.in; /cvs/dirsec/ldapserver/Makefile.in,v <-- Makefile.in new revision: 1.2; previous revision: 1.1 done
We have been successfully building using this method in the nightlies for a long time now. Marking as VERIFIED.