Skip to content

Commit dcac122

Browse files
committed
Fix another issue connected to EUMM bugfix
Addresses #26
1 parent bec32b1 commit dcac122

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile.PL

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,15 @@ my @SOURCES = map { join '/', 'libsass', 'src', $_ }
307307

308308
# Fix an issue with EU::MM > 7.10 as reported in:
309309
# https://github.com/sass/perl-libsass/issues/25
310-
if ($ExtUtils::MakeMaker::VERSION > 7.10) {
310+
my $EMMV = $ExtUtils::MakeMaker::VERSION;
311+
# Bug has been fixed in version 7.20
312+
if ($EMMV > 7.10 && $EMMV < 7.20) {
313+
# Fix another issue if as-needed is not supported
314+
# https://github.com/sass/perl-libsass/issues/26
315+
unless (`ld --help` =~ m/--no-as-needed/) {
316+
warn "Your current ExtUtils::MakeMaker has a bug\n";
317+
die "You need to upgrade ExtUtils::MakeMaker to 7.20+\n";
318+
}
311319
if (exists $compiler_flags{'dynamic_lib'}) {
312320
my $dynlibs = $compiler_flags{'dynamic_lib'};
313321
if (exists $dynlibs->{'OTHERLDFLAGS'}) {

0 commit comments

Comments
 (0)