diff --git a/configure.ac b/configure.ac index e48137f..73b4219 100644 --- a/configure.ac +++ b/configure.ac @@ -500,6 +500,18 @@ else enable_xcb=no fi +dnl readonly text segment on x86 hardened platforms +AC_ARG_ENABLE([glx_rts], + [AS_HELP_STRING([--enable-glx-rts], + [on x86, use a readonly text segment for libGL @<:@default=disabled@:>@])], + [enable_glx_rts="$enableval"], + [enable_glx_rts=no]) +if test "x$enable_glx_rts" = xyes; then + DEFINES="$DEFINES -DGLX_X86_READONLY_TEXT" +else + enable_glx_rts=no +fi + dnl dnl libGL configuration per driver dnl