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

to modules.
- Probe for OpenBSD aperture driver and define HAS_APERTURE_DRV
    accordingly.
This commit is contained in:
Matthieu Herrb 2006-03-15 21:25:38 +00:00
parent 21f7f2fb11
commit 6fe377af5a
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,12 @@
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):

View File

@ -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])

View File

@ -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