diff options
Diffstat (limited to 'graphics/p5-Cairo/files/patch-Makefile.PL')
-rw-r--r-- | graphics/p5-Cairo/files/patch-Makefile.PL | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/p5-Cairo/files/patch-Makefile.PL b/graphics/p5-Cairo/files/patch-Makefile.PL new file mode 100644 index 000000000000..b90da87f1d95 --- /dev/null +++ b/graphics/p5-Cairo/files/patch-Makefile.PL @@ -0,0 +1,14 @@ +Propagate Perl's ccflags to make sure it uses Perl's headers the same way as +Perl itself. + +--- Makefile.PL.orig 2021-01-19 17:26:47 UTC ++++ Makefile.PL +@@ -612,7 +612,7 @@ my $dep = ExtUtils::Depends->new ('Cairo'); + push @typemaps, 'cairo-perl.typemap'; + + my $dep = ExtUtils::Depends->new ('Cairo'); +-$dep->set_inc ('-I. -I'.$autogen_dir.' '.$cairo_cfg{cflags}); ++$dep->set_inc ('-I. -I'.$autogen_dir.' '.$cairo_cfg{cflags}.' '.$Config::Config{ccflags}); + $dep->set_libs ($cairo_cfg{libs}); + $dep->add_xs (@xs_files); + $dep->add_c (qw/cairo-perl-enums.c cairo-perl-flags.c/); |