X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/75b1f18590fbb0893dd2b0632278681c3121d886..3449836571833dec092ceb3edfdce24cf88f81dd:/scripts/fix-ltdl.pl diff --git a/scripts/fix-ltdl.pl b/scripts/fix-ltdl.pl index 7dd1c8b..f65265d 100755 --- a/scripts/fix-ltdl.pl +++ b/scripts/fix-ltdl.pl @@ -1,6 +1,6 @@ #!/usr/bin/env perl # -# Copyright © 2012 Nick Bowler +# Copyright © 2012, 2014 Nick Bowler # # Fixup a non-recursive libltdl makefile fragment. While libltdl purports to # support inclusion into non-recursive automake builds, it does a few things @@ -98,7 +98,8 @@ while () { print "# Postprocessed by ", basename($0), "\n"; print <<'EOF'; # This trick should define ltdl_orderonly to | iff we're using GNU make. -ltdl_have_orderonly = $(findstring order-only,$(.FEATURES)) +ltdl_make_features = $(.FEATURES) +ltdl_have_orderonly = $(findstring order-only,$(ltdl_make_features)) ltdl_orderonly = $(ltdl_have_orderonly:order-only=|) ltdl_core_headers = ltdl_src_headers = $(ltdl_orderonly) $(ltdl_core_headers)