Skip to content

Commit 59b30f6

Browse files
authored
lib/ExtUtils/MM_Darwin.pm: Unbreak Perl build
On modern macOS the compiler defaults to '-Werror,-Wimplicit-function-declaration' This breaks the build on code which calls a function without a prototype (invalid in C99). Turning the check off with '-Wno-error=implicit-function-declaration' breaks the build of Perl itself on legacy versions of Darwin with compilers which do not recognise the flags. Removing it allows Perl to once again build on Mac OS X as old as 10.4 with GCC 4.0.1.
1 parent 694b7c7 commit 59b30f6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/ExtUtils/MM_Darwin.pm

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ sub cflags {
6262
foreach (split /\n/, $base) {
6363
/^(\S*)\s*=\s*(\S*)$/ and $self->{$1} = $2;
6464
};
65-
$self->{CCFLAGS} .= " -Wno-error=implicit-function-declaration";
6665

6766
return $self->{CFLAGS} = qq{
6867
CCFLAGS = $self->{CCFLAGS}

0 commit comments

Comments
 (0)