bug-make
[Top][All Lists]
Advanced

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

[bug #23210] target/dependants with equal mtime


From: anonymous
Subject: [bug #23210] target/dependants with equal mtime
Date: Thu, 08 May 2008 19:17:27 +0000
User-agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.8.1.12) Gecko/20080223 Firefox/2.0.0.12

Follow-up Comment #1, bug #23210 (project make):

For this makefile:

> ../libfoo.a: foo1.o
>        ar rcs ../libfoo.a foo1.o

make is doing what you told it to; the problem is that the makefile doesn't
capture your intent.  That makefile says "add or update the foo1.o member of
../libfoo.a if _and_only_if_ the foo1.o file is newer
_than_the_archive_itself_".  That's wrong: the foo1.o member should be updated
if the foo1.o file is newer than the _member_in_the_archive_.  Using the
archive member syntax solves that:

../libfoo.a(foo1.o): foo1.o
        ar rcs ../libfoo.a foo1.o

(Of course, archive members targets have their own issue with parallel
builds, but that at least can be handled with .NOTPARALLEL)


Philip Guenther


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23210>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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