summaryrefslogtreecommitdiff
path: root/m4macros
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2011-03-22 23:37:27 +0100
committerNick Schermer <nick@xfce.org>2011-03-22 23:37:27 +0100
commit8bfa89183b4e27db241b1402bd53a0d5f80f6af3 (patch)
tree4c4c2142d25a85596f1247515b3af184a8c8e496 /m4macros
parentab2cf62f191b13884b4c7c7e71f10d0f21f3f9b5 (diff)
downloadxfce4-dev-tools-8bfa89183b4e27db241b1402bd53a0d5f80f6af3.tar.gz
Support xldscope for Sun Studio.
Diffstat (limited to 'm4macros')
-rw-r--r--m4macros/xdt-features.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4
index 51945fc..c790411 100644
--- a/m4macros/xdt-features.m4
+++ b/m4macros/xdt-features.m4
@@ -167,7 +167,11 @@ AC_DEFUN([XDT_FEATURE_VISIBILITY],
if test "x$have_gnuc_visibility" = "xyes"; then
CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
- XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
+ xdt_vis_hidden_cflags=""
+ XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden])
+ if test "x$xdt_vis_hidden_cflags" = "x"; then
+ XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
+ fi
CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
fi