]> git.draconx.ca Git - dxcommon.git/commit
fix-gnulib: Fix order-only hack with FreeBSD make.
authorNick Bowler <nbowler@draconx.ca>
Sat, 22 Nov 2014 17:11:56 +0000 (12:11 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 19 Apr 2015 18:49:06 +0000 (14:49 -0400)
commit75b1f18590fbb0893dd2b0632278681c3121d886
tree462d017e82fd19bd1041bd4750075bc427c60aac
parent2d17f059aa8a1e4670b9dad3f24556c7d97f6d45
fix-gnulib: 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-gnulib.pl