From 90c192e8ed83c222daded166ba5ae0bd72318e64 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 5 Nov 2018 20:00:19 +0100 Subject: [PATCH] Support locating Boost under BOOST_DIR/lib --- xs/Build.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/Build.PL b/xs/Build.PL index 20923de9a..6ae9ad9b6 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -127,7 +127,7 @@ if (defined $ENV{BOOST_LIBRARYPATH}) { push @boost_libs, $ENV{BOOST_LIBRARYPATH} } elsif (defined $ENV{BOOST_DIR}) { # User might have provided a path relative to the Build.PL in the main directory - foreach my $subdir ("$ENV{BOOST_DIR}/stage/lib", "../$ENV{BOOST_DIR}/stage/lib") { + foreach my $subdir ("$ENV{BOOST_DIR}/stage/lib", "../$ENV{BOOST_DIR}/stage/lib", "$ENV{BOOST_DIR}/lib", "../$ENV{BOOST_DIR}/lib") { next if $subdir =~ m{^\.\.//}; printf "Checking %s: ", $subdir; if (-d $subdir) {