Commit 6fe377af authored by Matthieu Herrb's avatar Matthieu Herrb

- OpenBSD needs -Wl,-export-dynamic to export symbols from main executable

    to modules.
- Probe for OpenBSD aperture driver and define HAS_APERTURE_DRV
    accordingly.
parent 21f7f2fb
2006-03-15 Matthieu Herrb <matthieu.herrb@laas.fr>
* configure.ac
* include/xorg-config.h.in
- OpenBSD needs -Wl,-export-dynamic to export symbols from main
executable to modules.
- Probe for OpenBSD aperture driver and define HAS_APERTURE_DRV
accordingly.
2006-03-15 Felix Kuehling <fkuehlin@ati.com>
* hw/xfree86/x86emu/ops2.c: (x86emuOp2_bts_R):
......
......@@ -158,6 +158,11 @@ if test "x$ac_cv_sysv_ipc" = xyes; then
AC_DEFINE(HAVE_SYSV_IPC, 1, [Define to 1 if SYSV IPC is available])
fi
dnl OpenBSD /dev/xf86 aperture driver
if test -c /dev/xf86 ; then
AC_DEFINE(HAS_APERTURE_DRV, 1, [System has /dev/xf86 aperture driver])
fi
dnl glibc backtrace support check (hw/xfree86/common/xf86Events.c)
AC_CHECK_HEADER([execinfo.h],[
AC_CHECK_LIB(c, backtrace, [
......@@ -1190,6 +1195,11 @@ if test "x$XORG" = xyes -o "x$XGL" = xyes; then
XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
LD_EXPORT_SYMBOLS_FLAG="-rdynamic"
fi
case $host_os in
openbsd*)
LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
;;
esac
AC_SUBST([XORG_CFLAGS])
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])
......
......@@ -106,6 +106,9 @@
/* System has wscons console */
#undef WSCONS_SUPPORT
/* System has /dev/xf86 aperture driver */
#undef HAS_APERTURE_DRV
/* Has backtrace support */
#undef HAVE_BACKTRACE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment