From: Martin Mares Date: Thu, 6 Apr 2006 16:02:28 +0000 (+0200) Subject: Added a work-around for make's desires. X-Git-Tag: holmes-import~650^2~13 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7b6cb80fed24d24e5b687f9a05d45629a0e695d9;p=libucw.git Added a work-around for make's desires. --- diff --git a/build/Makefile b/build/Makefile index 0e06791c..15bafe72 100644 --- a/build/Makefile +++ b/build/Makefile @@ -3,3 +3,10 @@ DIRS+=build $(o)/build/genhash: $(o)/build/genhash.o + +# This is a hack which compensates make's desires for propagating per-rule settings +# of variables: if some module specifies its own LIBS and it depends on genhash, +# genhash is sometimes built with the module's LIBS (if it isn't already built). +# A proper solution would be using a different rule for linking build/*, but +# as it currently concerns only genhash, it's easier to battle this way. +$(o)/build/genhash: LIBS=