This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH : libgcc1 and NO_MINUS_C_MINUS_O
- To: gcc-patches at gcc dot gnu dot org (gcc-patches at gcc dot gnu dot org)
- Subject: PATCH : libgcc1 and NO_MINUS_C_MINUS_O
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Tue, 16 May 2000 16:32:26 +0200 (CEST)
NO_MINUS_C_MINUS_O as used by mklibgcc.in is not set by configure.
configure set it only for $DEFS or something like that. As a consequence
mklibgcc always assume OLD_CC can cope with -c and -o together,
but that is not always true :(
Here is a tested fix. Could someone commit it and regenerate configure ?
Philippe De Muyter <phdm@macqel.be>
* configure.in (NO_MINUS_C_MINUS_O): Macro made availabe for AC_OUTPUT
files.
Index: gcc/configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.369
diff -u -p -r1.369 configure.in
--- configure.in 2000/05/11 07:20:21 1.369
+++ configure.in 2000/05/16 14:01:03
@@ -322,6 +322,9 @@ AC_CANONICAL_SYSTEM
# Find the native compiler
AC_PROG_CC
AC_PROG_CC_C_O
+if test $ac_cv_prog_cc_cc_c_o = no; then
+ NO_MINUS_C_MINUS_O=yes
+fi
AC_SUBST(NO_MINUS_C_MINUS_O)
gcc_AC_C_LONG_DOUBLE