summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/utilities.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index fac0cb356..dc755c63f 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -123,9 +123,10 @@ sub pkgconfig_get_lib_dirs($$$;$)
# to functions within these modules at configure time.
sub translate_functions($$)
{
+ my ($line,$module) = @_;
+
eval
{
- my ($line,$module) = @_;
$module =~ /modules*\/(.+?)$/;
$module = $1;
@@ -185,13 +186,16 @@ sub translate_functions($$)
my $replace = make_rpath($1,$module);
$line =~ s/rpath\("(.+?)"\)/$replace/;
}
- return $line;
};
if ($@)
{
print "\n\nConfiguration failed. The following error occured:\n\n$@\n";
exit;
}
+ else
+ {
+ return $line;
+ }
}
1;