[Xfce4-commits] <xfce4-dev-tools:master> Disable --as-needed on OpenBSD (bug #7546).
Nick Schermer
noreply at xfce.org
Thu Apr 28 22:58:01 CEST 2011
Updating branch refs/heads/master
to 874bfb8234ab1d3af08dea0ce4aa037cbddf996f (commit)
from 5927409dd1d42b39e25d4b813b8b2f00d26b001a (commit)
commit 874bfb8234ab1d3af08dea0ce4aa037cbddf996f
Author: Landry Breuil <landry at rhaalovely.net>
Date: Thu Apr 28 22:01:49 2011 +0200
Disable --as-needed on OpenBSD (bug #7546).
m4macros/xdt-features.m4 | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4
index eb017b0..41c7d90 100644
--- a/m4macros/xdt-features.m4
+++ b/m4macros/xdt-features.m4
@@ -195,16 +195,18 @@ AC_DEFUN([XDT_FEATURE_LINKER_OPTS],
[enable_linker_opts=$enableval], [enable_linker_opts=yes])
if test "x$enable_linker_opts" != "xno"; then
- AC_MSG_CHECKING([whether $LD accepts --as-needed])
- case `$LD --as-needed -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- LDFLAGS="$LDFLAGS -Wl,--as-needed"
- AC_MSG_RESULT([yes])
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
+ if test x`uname` != x"OpenBSD"; then
+ AC_MSG_CHECKING([whether $LD accepts --as-needed])
+ case `$LD --as-needed -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ LDFLAGS="$LDFLAGS -Wl,--as-needed"
+ AC_MSG_RESULT([yes])
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+ fi
AC_MSG_CHECKING([whether $LD accepts -O1])
case `$LD -O1 -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
More information about the Xfce4-commits
mailing list