diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-14 12:15:28 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-14 12:15:28 +0100 |
commit | 1885908fb4f679452290ec23e2e4eae176bd7c39 (patch) | |
tree | eb3b20fb237a1ebb714702a761a690ec7ada81ba /source4/build | |
parent | e33177001cdd7d55e45bb9c6ed3f39bf33a9da84 (diff) | |
download | samba-1885908fb4f679452290ec23e2e4eae176bd7c39.tar.gz samba-1885908fb4f679452290ec23e2e4eae176bd7c39.tar.bz2 samba-1885908fb4f679452290ec23e2e4eae176bd7c39.zip |
Don't create symlinks pointing at themselves.
(This used to be commit 96736eb556bfd7ab5b04ec40beefe23e475a438d)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/smb_build/makefile.pm | 4 |
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}"; } |