Include EXTRA_LD_OPTS (amongst other things) when linking programs
authorSimon Marlow <marlowsd@gmail.com>
Tue, 25 Mar 2014 14:32:28 +0000 (14:32 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 27 Mar 2014 12:36:14 +0000 (12:36 +0000)
commit975e9cb8e7744a0750bb6c8763f628e05672643e
tree77f41a1779a1c303f79812d6b1dc3452e57ce476
parenta6f2c852d49313fa8acea2deb3741ab86c6ef995
Include EXTRA_LD_OPTS (amongst other things) when linking programs

One problem was that we weren't including $1_$2_DIST_LD_OPTS when
linking a program, which looks to be accidental: it was being defined
but not used anywhere.  This meant that setting $1_$2_EXTRA_LD_OPTS,
for example, had no effect.

This commit straightens out the handling of LD_OPTS to be consistent
with the way we handle CC_OPTS and HC_OPTS.
rules/build-prog.mk
rules/distdir-way-opts.mk