opnsense-ports/lang/p5-JavaScript-SpiderMonkey/files/patch-Makefile.PL
Franco Fichtner dcb8c56a29 */*: sync with upstream
Taken from: HardenedBSD
2017-07-31 07:13:49 +02:00

17 lines
732 B
Perl

--- Makefile.PL.orig 2011-10-23 12:27:21.000000000 +0200
+++ Makefile.PL 2017-06-03 21:50:44.801687000 +0200
@@ -68,13 +68,8 @@
next if ! -f $libfile;
my $include_path = $possible_install_paths{$install_path};
foreach my $c_header(@c_header_files) {
- if (-f "$include_path/$c_header") {
+ if (-f "$include_path/js-1.7/$c_header") {
my $include_dir = "$include_path/$c_header";
- $include_dir =~ s/$c_header$//;
- push @JS_INCL_DIRS, $include_dir;
- }
- foreach my $headerfile(glob "$include_path/*/$c_header") {
- my $include_dir = $headerfile;
$include_dir =~ s/$c_header$//;
push @JS_INCL_DIRS, $include_dir;
}