diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-15 04:08:28 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-15 04:08:28 +0200 |
commit | 223df634c888092cd2528aca6fcdf78a4de0246f (patch) | |
tree | 9dbaec5d2482d2a8828022a7066f20cb5a94ab5e /source4/build | |
parent | 98a4dd9b5eda6f0eb94bffe6b97f5fbccef41208 (diff) | |
download | samba-223df634c888092cd2528aca6fcdf78a4de0246f.tar.gz samba-223df634c888092cd2528aca6fcdf78a4de0246f.tar.bz2 samba-223df634c888092cd2528aca6fcdf78a4de0246f.zip |
Work around 'test' quirks - use make's string comparison instead.
(This used to be commit 434b61623ecfd846f043ee92c833e92cf905e7b4)
Diffstat (limited to 'source4/build')
-rw-r--r-- | source4/build/smb_build/makefile.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index 81aac2fc46..8f3f1701b7 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -244,7 +244,9 @@ $ctx->{RESULT_SHARED_LIBRARY}: \$($ctx->{NAME}_DEPEND_LIST) \$($ctx->{NAME}_FULL __EOD__ ); if ($ctx->{LIBRARY_REALNAME} ne $ctx->{LIBRARY_SONAME}) { - $self->output("\t\@test \$($ctx->{NAME}_VERSION) = \$($ctx->{NAME}_SOVERSION) || ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}\n"); + $self->output("ifneq (\$($ctx->{NAME}_VERSION),\$($ctx->{NAME}_SOVERSION))\n"); + $self->output("\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}\n"); + $self->output("endif\n"); } $self->output("ifdef $ctx->{NAME}_SOVERSION\n"); $self->output("\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_DEBUGNAME}\n"); |