summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-19 17:24:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:58:47 -0500
commit3ddf4e831a4c66d085f1294aa008f5655416ae7c (patch)
tree41e634df9148ddd52120933301a4232eba960aa8 /source4/build
parente1e31b4554ef63700fa8a6e487168c755c031c27 (diff)
downloadsamba-3ddf4e831a4c66d085f1294aa008f5655416ae7c.tar.gz
samba-3ddf4e831a4c66d085f1294aa008f5655416ae7c.tar.bz2
samba-3ddf4e831a4c66d085f1294aa008f5655416ae7c.zip
r14565: Fix shared library sonames
(This used to be commit 3e6b75d955cc49becf9145fbe4380c4e7e7f81f6)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/smb_build/makefile.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 73f315cf4f..6ed1c36d13 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -248,10 +248,9 @@ __EOD__
if ($self->{config}->{SONAMEFLAG} ne "" and
defined($ctx->{LIBRARY_SONAME})) {
$soarg = "$self->{config}->{SONAMEFLAG}$ctx->{LIBRARY_SONAME} ";
- }
-
- if ($self->{config}->{SONAMEFLAG} ne "") {
- $soargdebug = "$self->{config}->{SONAMEFLAG}$ctx->{LIBRARY_REALNAME} ";
+ if ($ctx->{LIBRARY_REALNAME} ne $ctx->{LIBRARY_SONAME}) {
+ $soargdebug = "\tln -fs $ctx->{LIBRARY_REALNAME} $ctx->{DEBUGDIR}/$ctx->{LIBRARY_SONAME}\n";
+ }
}
if ($self->{duplicate_build}) {
@@ -262,9 +261,9 @@ $ctx->{TARGET}: \$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST) \$($ctx->{TYPE}_$ctx->
\@echo Linking \$\@
\@mkdir -p $ctx->{DEBUGDIR}
\@\$(SHLD) \$(SHLD_FLAGS) -o \$\@ \$(LOCAL_LINK_FLAGS) \\
- \$($ctx->{TYPE}_$ctx->{NAME}_LINK_FLAGS) $soargdebug \\
+ \$($ctx->{TYPE}_$ctx->{NAME}_LINK_FLAGS) $soarg \\
$init_obj \$($ctx->{TYPE}_$ctx->{NAME}_LINK_LIST)
-
+$soargdebug
__EOD__
);
}