summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-07 17:15:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:33 -0500
commitd9c439b88448055d62ab85d6dab2204894b9dd9e (patch)
tree5e4e651873e0df5859e080055e9cf62fdb5e4e35
parent324fcc27f9e63b63e0c7403f1c100949952fb0b5 (diff)
downloadsamba-d9c439b88448055d62ab85d6dab2204894b9dd9e.tar.gz
samba-d9c439b88448055d62ab85d6dab2204894b9dd9e.tar.bz2
samba-d9c439b88448055d62ab85d6dab2204894b9dd9e.zip
r13967: change the standard visibility to "default" public again
for modules, libraries and subsystems metze (This used to be commit 2d546c32801b12ba82596ccdf1521cba7bfff9f7)
-rw-r--r--source4/build/m4/check_cc.m41
-rw-r--r--source4/build/smb_build/input.pm6
-rw-r--r--source4/build/smb_build/output.pm2
-rw-r--r--source4/configure.in2
4 files changed, 7 insertions, 4 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index 0a215ef802..a6a19bc42b 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -137,7 +137,6 @@ if test -n "$VISIBILITY_CFLAGS"; then
visibility_attribute=yes
],[
AC_MSG_RESULT(no)
- VISIBILITY_CFLAGS=""
])
CFLAGS="$OLD_CFLAGS"
fi
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm
index 5d6320942c..8cad9aafa6 100644
--- a/source4/build/smb_build/input.pm
+++ b/source4/build/smb_build/input.pm
@@ -160,7 +160,11 @@ sub check($$$$$)
}
unless (defined($part->{STANDARD_VISIBILITY})) {
- $part->{STANDARD_VISIBILITY} = "hidden";
+ if ($part->{TYPE} eq "BINARY") {
+ $part->{STANDARD_VISIBILITY} = "hidden";
+ } else {
+ $part->{STANDARD_VISIBILITY} = "default";
+ }
}
unless (defined($part->{EXTRA_CFLAGS})) {
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm
index b0872db457..02e30ceeb5 100644
--- a/source4/build/smb_build/output.pm
+++ b/source4/build/smb_build/output.pm
@@ -111,7 +111,7 @@ sub create_output($$)
$part->{OUTPUT_TYPE} = "OBJLIST";
}
- if (($part->{STANDARD_VISIBILITY} ne "hidden") and
+ if (($part->{STANDARD_VISIBILITY} ne "default") and
($config->{visibility_attribute} eq "yes")) {
$part->{EXTRA_CFLAGS} .= " -fvisibility=$part->{STANDARD_VISIBILITY}";
}
diff --git a/source4/configure.in b/source4/configure.in
index 625557fca5..caf0787179 100644
--- a/source4/configure.in
+++ b/source4/configure.in
@@ -52,7 +52,7 @@ AC_ARG_ENABLE(dso,
#################################################
# add *_CFLAGS only for the real build
-CFLAGS="${CFLAGS} ${VISIBILITY_CFLAGS} ${DEVELOPER_CFLAGS}"
+CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
#################################################
# final configure stuff