Dependencies, libstorage, and libinnhist
Kai Henningsen
kaih at khms.westfalen.de
Tue Dec 10 20:18:00 UTC 2002
jeff at litech.org (Jeffrey M. Vinocur) wrote on 07.12.02 in <Pine.LNX.4.44.0212072314190.8548-100000 at puck.litech.org>:
> Apparently there is AC_PROG_CC_C_O in autoconf, which would allow us to
> detect the desired functionality and switch use the following in
> Makefile.global.in:
>
> INPUT_AND_OUTPUT = @INPUT_AND_OUTPUT@
>
> .c.o:
> $(CC) $(CFLAGS) $(INPUT_AND_OUTPUT)
>
> where depending on what autoconf finds, $INPUT_AND_OUTPUT is set to
> "-c -o $@ $<" normally and "-c $<; mv $(@F) $@". (Sadly the test only
> does a #define and not a substitution, so we'd have to replace
> @INPUT_AND_OUTPUT@ ourselves, but whatever.)
>
>
> There's a big caveat, though. This only works if no two .o files have the
> same basename. I figure we can rename the things in tests/ with no
> hassle, but we have a few other collisions anyway:
Urgh.
May I repeat my alternate suggestion?
For compiling foo.c into bar.o:
echo '#include "foo.c" > bar.c
$CC -c bar.c
MfG Kai
More information about the inn-workers
mailing list