summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShutterQuick <shutter@canternet.org>2014-02-27 09:45:16 -0800
committerDaniel Vassdal <shutter@canternet.org>2014-02-27 10:57:34 -0800
commit0a3b54f599e20fcccaacc655535c0682803fe348 (patch)
tree14b4ae205253a3ddf06b8c91b29d42e53cae1dd3
parent60b5933a7e0973c0043b72a10d66226c9d1b423c (diff)
Fix build problem on Solaris
-rpath only takes one dash Fixes the Solaris build \o/ ''' <fraggeln> SaberUK: http://m.theo.nu/jenkins/job/InspIRCd-2.0/435/label=solaris/console <-- <fraggeln> do you have any clue on why? <@Shutter> Hmm. Where did that extra - come from. <fraggeln> Shutter: no idea :) [...] <fraggeln> Shutter: sub make_rpath($;$) <-- in make/utilities.pm <fraggeln> thats where that extra - is'''
-rw-r--r--make/utilities.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 9281246fb..4452acc41 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -86,7 +86,7 @@ sub make_rpath($;$)
print "Adding extra library path to \e[1;32m$module\e[0m ... \e[1;32m$libpath\e[0m\n";
$already_added{$libpath} = 1;
}
- $output .= "-Wl,--rpath -Wl,$libpath -L$libpath " unless defined $main::opt_disablerpath;
+ $output .= "-Wl,-rpath -Wl,$libpath -L$libpath " unless defined $main::opt_disablerpath;
$data =~ s/-L(\S+)//;
}
return $output;
@@ -432,7 +432,6 @@ sub translate_functions($$)
while ($line =~ /rpath\("(.+?)"\)/)
{
my $replace = make_rpath($1,$module);
- $replace = "" if ($^O =~ /darwin/i);
$line =~ s/rpath\("(.+?)"\)/$replace/;
}
};