This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [toplevel] GCC_NO_EXECUTABLES
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org
- Date: Sun, 12 Dec 2004 19:55:57 +0100
- Subject: Re: [toplevel] GCC_NO_EXECUTABLES
- References: <20030827171507.GA14215@nevyn.them.org><jeekigpqtx.fsf@sykes.suse.de> <20041130012711.GA31496@nevyn.them.org>
Daniel Jacobowitz <drow@false.org> writes:
> The problem probably arises because we AC_REQUIRE AC_FUNC_MMAP from
> libiberty_AC_FUNC_STRNCMP, which is used unconditionally. If
> GCC_NO_EXECUTABLES is in effect, we must suppress this somehow. I
> think that doing it in libiberty's configure didn't work because of the
> semantics of AC_REQUIRE.
Setting the cache variable is already enough to prevent the tests in
AC_FUNC_MMAP from being executed.
2004-12-12 Andreas Schwab <schwab@suse.de>
* no-executables.m4: Remove conditional around expansion of
AC_FUNC_MMAP.
--- config/no-executables.m4.~1.1.~ 2003-08-27 21:14:13.000000000 +0200
+++ config/no-executables.m4 2004-12-12 19:46:15.840855115 +0100
@@ -53,9 +53,7 @@ if test x$gcc_no_link = xyes; then
ac_cv_func_mmap_fixed_mapped=no
fi
fi
-if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
- m4_defn([AC_FUNC_MMAP])
-fi)
+m4_defn([AC_FUNC_MMAP]))
m4_divert_pop()dnl
])# GCC_NO_EXECUTABLES
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."