diff options
author | Landry Breuil <landry@rhaalovely.net> | 2011-04-28 22:01:49 +0200 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2011-04-28 22:01:49 +0200 |
commit | 874bfb8234ab1d3af08dea0ce4aa037cbddf996f (patch) | |
tree | 60f7216b7c67196ba812d31d403fc047be0f2d25 /m4macros | |
parent | 5927409dd1d42b39e25d4b813b8b2f00d26b001a (diff) | |
download | xfce4-dev-tools-874bfb8234ab1d3af08dea0ce4aa037cbddf996f.tar.gz |
Disable --as-needed on OpenBSD (bug #7546).
Diffstat (limited to 'm4macros')
-rw-r--r-- | 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'*) |