[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc cc -c -o

From: Kevin Ryde
Subject: Re: doc cc -c -o
Date: Sun, 04 Jan 2004 09:39:17 +1000
User-agent: Gnus/5.1004 (Gnus v5.10.4) Emacs/21.3 (gnu/linux)

Peter Eisentraut <address@hidden> writes:
> AC_PROG_CC_C_O is pretty unsuitable for this.  It only defines a
> preprocessor macro, nothing that you can use in a makefile.

Ah yes (for some reason I thought NO_MINUS_C_MINUS_O was a shell
variable rather than an AC_DEFINE).  New effort then, without
bothering about the cross reference,

        * doc/autoconf.texi (Limitations of Usual Tools): Note cc may not
        allow -c -o together.

     `cc -c foo.c' produces a `foo.o' object file.  Most compilers
     allow a `-o' option to direct the output to a different file, but
     POSIX doesn't require this (with `-c') so it should be avoided.

Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]