Couple improvements to the two Build.PL files

This commit is contained in:
Alessandro Ranellucci 2017-03-06 16:33:54 +01:00
parent fc7e022003
commit 1edbf9c0a6
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,8 @@ my %prereqs = qw(
my %recommends = qw( my %recommends = qw(
Class::XSAccessor 0 Class::XSAccessor 0
Test::Harness 0 Test::Harness 0
Thread::Queue 0
threads::shared 0
); );
my $sudo = grep { $_ eq '--sudo' } @ARGV; my $sudo = grep { $_ eq '--sudo' } @ARGV;

View File

@ -24,7 +24,9 @@ if ($cpp_guess->is_gcc) {
} }
my @ldflags = (); my @ldflags = ();
if ($^O eq 'darwin') { if ($^O eq 'darwin') {
push @cflags, qw(-stdlib=libc++); if (!$cpp_guess->is_gcc) {
push @cflags, qw(-stdlib=libc++);
}
push @ldflags, qw(-framework IOKit -framework CoreFoundation -lc++); push @ldflags, qw(-framework IOKit -framework CoreFoundation -lc++);
# Due to a bug/misconfiguration/stupidity, boost 1.52 and libc++ don't like each # Due to a bug/misconfiguration/stupidity, boost 1.52 and libc++ don't like each