From 2e9a0f5590f9193f9f7102c286d1b0c10848c756 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 5 Nov 2015 11:02:12 +0100 Subject: [PATCH] Added more search paths for Boost on Win32 --- xs/Build.PL | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xs/Build.PL b/xs/Build.PL index 5dd226f307..de8b7ff6d4 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -29,6 +29,13 @@ if (defined $ENV{BOOST_DIR}) { push @LIBS, map "-L$_", grep { -d $_ } qw(/opt/local/lib /usr/local/lib /opt/lib /usr/lib), qw(C:/Boost/lib /lib); + + if ($^O eq 'MSWin32') { + for my $path (glob 'C:/dev/boost* C:/boost*') { + push @INC "-I" . $path; + push @INC "-L" . $path . "/stage/lib"; + } + } } push @INC, '-Iinclude';