From: Nick Bowler Date: Sat, 22 Nov 2014 17:15:48 +0000 (-0500) Subject: fix-ltdl: Fix order-only hack with FreeBSD make. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/3449836571833dec092ceb3edfdce24cf88f81dd?hp=3449836571833dec092ceb3edfdce24cf88f81dd 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. ---