]> git.draconx.ca Git - dxcommon.git/commit
fix-ltdl: Fix order-only hack with FreeBSD make.
authorNick Bowler <nbowler@draconx.ca>
Sat, 22 Nov 2014 17:15:48 +0000 (12:15 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 19 Apr 2015 18:49:06 +0000 (14:49 -0400)
commit3449836571833dec092ceb3edfdce24cf88f81dd
tree8b970e55c6675941f32a24446c8008037a305d65
parent75b1f18590fbb0893dd2b0632278681c3121d886
fix-ltdl: Fix order-only hack with FreeBSD make.

FreeBSD make does not work well when undefined variables are used in
nested expansions.  When such an expansion appears in the prerequisites
of a target, FreeBSD make exits with a fatal error.  For example:

  A = $(var$(B))
  foo : $(A)

  % make
  Error expanding embedded variable.

This causes the order-only hack to fail because FreeBSD make does not
define .FEATURES.  The workaround is simple: add another variable which
is assigned the value of .FEATURES.  That variable can be used in the
nested expansion to avoid the error.
scripts/fix-ltdl.pl