Disable --as-needed on OpenBSD
Submitted by Landry Breuil
Assigned to Xfce Bug Triage
Description
This should be reassigned to xfce4-dev-tools once there's a bugzilla component for it.
-Wl,--as-needed (ie linker opts) shouldn't be added when --enable-debug=full is used, as on OpenBSD things get messed up when --as-needed is used in conjunction with -pthread. See http://buildbot.xfce.org/builders/libxfce4util-openbsd/builds/14/steps/gmake%20distcheck/logs/stdio
Ideally, m4macros/xdt-features.m4 should do the AC_MSG_CHECKING([whether $LD accepts --as-needed]) only if uname is != OpenBSD, as done for adding -Wredundant-decls. Or conditionally add -Wl,--as-needed to LDFLAGS just below.
Version: git