summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-14 12:15:28 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-14 12:15:28 +0100
commit1885908fb4f679452290ec23e2e4eae176bd7c39 (patch)
treeeb3b20fb237a1ebb714702a761a690ec7ada81ba
parente33177001cdd7d55e45bb9c6ed3f39bf33a9da84 (diff)
downloadsamba-1885908fb4f679452290ec23e2e4eae176bd7c39.tar.gz
samba-1885908fb4f679452290ec23e2e4eae176bd7c39.tar.bz2
samba-1885908fb4f679452290ec23e2e4eae176bd7c39.zip
Don't create symlinks pointing at themselves.
(This used to be commit 96736eb556bfd7ab5b04ec40beefe23e475a438d)
-rw-r--r--source4/build/smb_build/makefile.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 3bcdab30e6..7fd31a5114 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -250,13 +250,11 @@ sub SharedLibrary($$)
if ($self->{config}->{SONAMEFLAG} ne "#" and defined($ctx->{LIBRARY_SONAME})) {
$soarg = "$self->{config}->{SONAMEFLAG}$ctx->{LIBRARY_SONAME}";
if ($ctx->{LIBRARY_REALNAME} ne $ctx->{LIBRARY_SONAME}) {
- $lns .= "\n\t\@rm -f $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
- $lns .= "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
+ $lns .= "\n\t\@test \$($ctx->{NAME}_VERSION) = \$($ctx->{NAME}_SOVERSION) || ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
}
}
if (defined($ctx->{LIBRARY_SONAME})) {
- $lns .= "\n\t\@rm -f $ctx->{SHAREDDIR}/$ctx->{LIBRARY_DEBUGNAME}";
$lns .= "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_DEBUGNAME}";
}