]> git.draconx.ca Git - dxcommon.git/commit
fix-ltdl: Fix order-only hack with HP-UX make.
authorNick Bowler <nbowler@draconx.ca>
Sat, 26 Feb 2022 20:26:58 +0000 (15:26 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 26 Feb 2022 20:26:58 +0000 (15:26 -0500)
commit9d379a9237fe1af3fa94a35835356cad0adaf7dd
tree6ca6a114498452a0a6c338a2bdf60165e4409079
parent03a26752c80546ac8cf8fc81807bb5a153786599
fix-ltdl: Fix order-only hack with HP-UX make.

HP-UX make gets confused by the space in $(findstring ...,$(...))
syntax: instead of expanding to the empty string as desired, it
mismatches the parentheses and we are left with a single ).  E.g.:

  % cat >Makefile <<'EOF'
  all:
@echo '$(a $(b))'
EOF
  % make
  )

Since $(x) and ${x} are equivalent in Make, a neat solution is to
just replace one set of parentheses with braces; now there are no
nested parentheses to mismatch in the first place.
scripts/fix-ltdl.pl