Permalink
Browse files

dontpanic build chain: darwin-specific linker argument

  • Loading branch information...
1 parent b3e11ab commit 126ed318f162599b83d9261a8c8170ad704647d1 @jberger jberger committed May 2, 2012
Binary file not shown.
@@ -52,9 +52,10 @@ sub build {
# Link
my $so = "libdontpanic$libbuilder->{libext}";
+ my $soname = $^O eq 'darwin' ? '-install_name' : '-soname';
$libbuilder->link(
objects => [ $o ],
- extra_linker_flags => "-Wl,-soname,$so",
+ extra_linker_flags => "-Wl,$soname,$so",
lib_file => $so,
);

0 comments on commit 126ed31

Please sign in to comment.