Permalink
Browse files

make.pl should install_name_tool on install command

  • Loading branch information...
jberger committed Jun 27, 2012
1 parent b14a376 commit 834ae1b42cb399d326975b76830b0761ddbba6b4
View
@@ -4,7 +4,7 @@
"Joel A. Berger <joel.a.berger@gmail.com>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.3901, CPAN::Meta::Converter version 2.120921",
+ "generated_by" : "Module::Build version 0.3901, CPAN::Meta::Converter version 2.120630",
"license" : [
"perl_5"
],
View
@@ -6,7 +6,7 @@ build_requires: {}
configure_requires:
Module::Build: 0.36
dynamic_config: 1
-generated_by: 'Module::Build version 0.3901, CPAN::Meta::Converter version 2.120921'
+generated_by: 'Module::Build version 0.3901, CPAN::Meta::Converter version 2.120630'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
Binary file not shown.
@@ -98,6 +98,9 @@ sub install {
local $CWD = $folder;
foreach my $file (@{$files{$folder}}) {
copy $file, $CWD or die "Could not copy file $file";
+ if ($file =~ /\.dylib$/) {
+ system("install_name_tool -id $file $file") == 1 or warn "Could not install dylib";
+ }
}
_write_pc() if $folder eq 'lib';
}

0 comments on commit 834ae1b

Please sign in to comment.