summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-06-21 15:43:28 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-06-21 15:44:00 +0100
commit934da4d8f8a6a9099d59fbf072b6dc37d4368ad5 (patch)
tree0c41d6b4e9bdb46c16dad25135656cf49cc60943 /solenv
parente24eae042c4d3c2963c74ab8bab16c59eadc969f (diff)
fix bug with duplicate entry in hash trampling on dll linking
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/linkoo11
1 files changed, 5 insertions, 6 deletions
diff --git a/solenv/bin/linkoo b/solenv/bin/linkoo
index 2113c76ae9e9..a1a469ae9d58 100755
--- a/solenv/bin/linkoo
+++ b/solenv/bin/linkoo
@@ -74,20 +74,19 @@ $program_dir = 'openoffice.org/basis-link/MacOS' if ($ENV{OS} eq 'MACOSX'); # FI
my @exceptions = ( 'cppuhelper', 'sunjavaplugin', 'libjvmfwk' );
+my $dllre = '\.so$';
+$dllre = '\.dylib$' if ($ENV{OS} eq 'MACOSX');
+
my %replaceable = (
- $program_dir => '\.so',
+ $program_dir => "($dllre|\.rdb)",
+ $ure_lib_dir => "$dllre",
$program_dir . '/resource' => '\.res$',
$program_dir . '/classes' => '\.jar$',
'basis-link/share/config' => '\.zip$',
- $program_dir => '\.rdb',
'ure/share/misc' => '\.rdb'
# 'share/uno_packages' => '\.zip$'
);
-# strangely enough, OSX has those small differences...
-$replaceable{$program_dir} = '\.dylib$' if ($ENV{OS} eq 'MACOSX');
-$replaceable{$ure_lib_dir} = '\.dylib$' if ($ENV{OS} eq 'MACOSX');
-
my @search_dirs = ( 'lib', 'bin', 'class' );
my @known_duplicates = ( 'db.jar', 'libi18n' );