Work around 'test' quirks - use make's string comparison instead.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 15 Apr 2008 02:08:28 +0000 (04:08 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 15 Apr 2008 02:08:28 +0000 (04:08 +0200)
(This used to be commit 434b61623ecfd846f043ee92c833e92cf905e7b4)

source4/build/smb_build/makefile.pm

index 81aac2fc46a9bb7fa56c220f073bcc8bd7867d65..8f3f1701b7c400f4ebf476846b60399042f091f0 100644 (file)
@@ -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");