r20298: Fix pidl tests (missing symlink..).
authorJelmer Vernooij <jelmer@samba.org>
Thu, 21 Dec 2006 01:51:35 +0000 (01:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:34 +0000 (14:29 -0500)
(This used to be commit ab3d57394630cefc1fefe859c8bd3d56f6e63695)

source4/build/smb_build/makefile.pm
source4/build/smb_build/output.pm
source4/include/includes.h
source4/pidl/tests/Util.pm

index b639612fed5de38488efd32a615bcc9efd080128..a4f03ae1e884b15c0e4cbc89fb0c37b8d9d523b7 100644 (file)
@@ -264,20 +264,22 @@ __EOD__
        }
 
        my $soarg = "";
-       my $soargdebug = "";
+       my $lns = "";
        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}) {
-                       $soargdebug = "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
+                       $lns .= "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
                }
        }
 
-       my $singlesoarg = "";
-
        if ($self->{config}->{SONAMEFLAG} ne "" and 
                defined($ctx->{LIBRARY_SONAME}) and 
                $ctx->{LIBRARY_REALNAME} ne $ctx->{LIBRARY_SONAME}) {
-               $singlesoarg = "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
+               $lns .= "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_SONAME}";
+       }
+
+       if (defined($ctx->{LIBRARY_SONAME})) {
+               $lns .= "\n\t\@ln -fs $ctx->{LIBRARY_REALNAME} $ctx->{SHAREDDIR}/$ctx->{LIBRARY_DEBUGNAME}";
        }
 
        $self->output(<< "__EOD__"
@@ -290,7 +292,7 @@ $ctx->{SHAREDDIR}/$ctx->{LIBRARY_REALNAME}: \$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_
                \$($ctx->{TYPE}_$ctx->{NAME}\_FULL_OBJ_LIST) \\
                \$($ctx->{TYPE}_$ctx->{NAME}_LINK_FLAGS) $extraflags \\
                 $soarg \\
-               $init_obj $singlesoarg$soargdebug
+               $init_obj $lns
 __EOD__
 );
 
index 1451b8bb7d4954cc1aa1850007ca5895a3a04594..e90a7fb2a29859a39ea027afe7dabdf240eaf245 100644 (file)
@@ -65,6 +65,8 @@ sub generate_shared_library($)
                }
        }
 
+       $lib->{LIBRARY_DEBUGNAME} = $lib->{LIBRARY_REALNAME};
+
        if (defined($lib->{VERSION})) {
                $lib->{LIBRARY_SONAME} = "$lib->{LIBRARY_REALNAME}.$lib->{SO_VERSION}";
                $lib->{LIBRARY_REALNAME} = "$lib->{LIBRARY_REALNAME}.$lib->{VERSION}";
index a2c8b3472d6a29ed3236cff8af42c967dec65dea..f1188e2aaf66a59a80d5ea2f7c6c709e9a0e97f6 100644 (file)
@@ -77,7 +77,9 @@ _PUBLIC_ void smb_panic(const char *why) NORETURN_ATTRIBUTE;
 #include "system/time.h"
 #include "system/wait.h"
 
+#ifndef _PRINTF_ATTRIBUTE
 #define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
+#endif
 
 /* Lists, trees, caching, database... */
 #include "talloc/talloc.h"
index 83651e6073b4c1b2658825f3fa8a8b3da936ce88..cbe6283852b27ec6c3e6cd32202b144c0f7315ae 100644 (file)
@@ -46,9 +46,9 @@ SKIP: {
                $outfile = "test-$name";
        }
 
-       my $cflags = `pkg-config --libs --cflags ndr`;
+       my $flags = `pkg-config --libs --cflags ndr samba-config`;
 
-       open CC, "|cc -x c - -o $outfile $cflags";
+       open CC, "|cc -x c - -o $outfile $flags";
        print CC "#define uint_t unsigned int\n";
        print CC "#define _GNU_SOURCE\n";
        print CC "#include <stdint.h>\n";