NetBSD-Bugs archive

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

Re: bin/42381: LD_ADD.$name does not work as expected



The following reply was made to PR bin/42381; it has been noted by GNATS.

From: Masao Uebayashi <uebayasi%tombi.co.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
martin%NetBSD.org@localhost
Subject: Re: bin/42381: LD_ADD.$name does not work as expected
Date: Thu, 26 Nov 2009 21:50:23 +0900

 > bsd.prog.mk also does this:
 >
 > _LDADD.${_P}=           ${LDADD}    ${LDADD.${_P}}
 >
 > and I believe that the fix would be to remove the "LDADD+=${LDADD.${_P}}"
 > and rewrite relevant rules in terms of ${_LDADD.${_P}} (note the
 > underline) instead of ${LDADD}.  Similarly for several other variables in
 > bsd.prog.mk.
 
 I've never liked these .for loops handling multiple PROGS / LIBS in bsd.prog.mk
 / bsd.lib.mk.  Because of them these files are almost impossible to maintain.
 
 I wonder if it's possible to put multiple makefiles in a single directory
 (not one Makefile with PROGS=foo bar, but foo.mk and bar.mk.)
 
 Masao
 
 -- 
 Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
 


Home | Main Index | Thread Index | Old Index