]> git.draconx.ca Git - dxcommon.git/commitdiff
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)
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.


No differences found