bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_LIBOBJ with file in subdirectory does not work


From: Russ Allbery
Subject: Re: AC_LIBOBJ with file in subdirectory does not work
Date: Wed, 26 May 2010 19:58:07 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Bruno Haible <address@hidden> writes:
> Hi Ralf,

>> +# Ensure objects in ../src are renamed so they don't conflict with
>> +# the objects generated from ../src/Makefile.
>> +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS)

> Wow. What a hack! Even with the comments, I could not understand how
> changing CPPFLAGS could have an effect on object files.

     When using a per-target compilation flag, Automake will choose a
     different name for the intermediate object files.  Ordinarily a
     file like `sample.c' will be compiled to produce `sample.o'.
     However, if the program's `_CFLAGS' variable is set, then the
     object file will be named, for instance, `maude-sample.o'.  (See
     also *note Renamed Objects::.)

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>



reply via email to

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