my $libs = Configure::Data->get('libs');
if ( $libs !~ /-lpthread/ ) {
    $libs .= ' -lpthread';
}
if ( $libs !~ /-lrt\b/ ) {
    $libs .= ' -lrt';
}
Configure::Data->set(
    libs => $libs,
);


my $libs = Configure::Data->get('libs');
if ( $libs !~ /-lpthread/ ) {
    $libs .= ' -lpthread';
}
if ( $libs !~ /-lrt\b/ ) {
    $libs .= ' -lrt';
}
Configure::Data->set(
    libs => $libs,
);

# my $cc = Configure::Data->get('cc');
my $link = Configure::Data->get('link');
if (!Configure::Data->get('gccversion')) {
    # Going to assume Sun's compiler
    # In which case we need to link with the C++ compiler (CC) rather than the
    # C compiler (cc)
    $link =~ s/\bcc\b/CC/;
    Configure::Data->set('link', $link);
}

Change link to 'CC' (the C++ compiler) if we appear to be using 'cc' (the Sun C compiler) for linking, as ICU needs C++ runtime libraries.
Change link to 'CC' (the C++ compiler) if we appear to be using 'cc'
(the Sun C compiler) for linking, as ICU needs C++ runtime libraries.


git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@6286 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
