avoid compiling in srcdir [was: [Failure]compiling glibc on MKlinux]
Gordon Matzigkeit
gord@m-tech.ab.ca
Mon May 18 02:26:00 GMT 1998
Hi!
>>>>> Andreas Jaeger writes:
AJ> - The current version contains some patches to make the build
AJ> process faster. A lot of people complained that it takes too
AJ> long to compile glibc and Zack finally managed to make some real
AJ> improvements[1]. Sadly this broke one special case: Building in
AJ> the source directory. We've always advocated to build glibc in
AJ> an extra build directory:
>> The `best' way to build glibc is to use an extra directory, e.g.:
>> tar xzf libc-970921.tar.gz mkdir build-glibc cd build-glibc
>> ../libc-970921/configure ...
AJ> This is how we build glibc and therefore should always work.
AJ> I'd advise everybody to use a build directory to build glibc -
AJ> independent of the version.
Why not enforce this policy with software?
1998-05-18 Gordon Matzigkeit <gord@profitpress.com>
* configure.in: Guarantee that the package will not be configured
in its source directory. This should avoid one of the FAQs.
If strict enforcement is not desirable, then just change the
AC_MSG_ERROR to AC_MSG_WARNING, and soften the words.
Have fun,
--
Gordon Matzigkeit \ Proudly running pieces of the GNU operating system.
gord@profitpress.com \ Jacques Cousteau loved programming in assembler.
--- configure.in~ Sun May 17 11:55:13 1998
+++ configure.in Mon May 18 02:23:53 1998
@@ -2,6 +2,10 @@
AC_REVISION([$CVSid$])
AC_PREREQ(2.11)dnl dnl Minimum Autoconf version required.
AC_INIT(include/features.h)
+if test -r $ac_unique_file; then
+ AC_MSG_ERROR(this package cannot be built in its source directory; use a separate build directory)
+fi
+
AC_CONFIG_HEADER(config.h)
AC_CONFIG_AUX_DIR(scripts)
More information about the Libc-alpha
mailing list