File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 22
22
dnl Authors: Jeremy Huddleston <[email protected] >
23
23
24
24
AC_DEFUN ( [ XORG_TLS] , [
25
+ AC_REQUIRE ( [ XORG_STRICT_OPTION] )
25
26
AC_MSG_CHECKING ( for thread local storage ( TLS ) support )
26
27
AC_CACHE_VAL ( ac_cv_tls , [
27
28
ac_cv_tls=none
@@ -36,10 +37,7 @@ AC_DEFUN([XORG_TLS], [
36
37
AC_MSG_CHECKING ( for tls_model attribute support )
37
38
AC_CACHE_VAL ( ac_cv_tls_model , [
38
39
save_CFLAGS="$CFLAGS"
39
- dnl -Werror causes clang's default -Wunknown-attributes to become an error
40
- dnl We can't use -Werror=unknown-attributes because gcc doesn't understand it
41
- dnl -Werror=attributes is for gcc, clang seems to ignore it
42
- CFLAGS="$CFLAGS -Werror -Werror=attributes"
40
+ CFLAGS="$CFLAGS $STRICT_CFLAGS"
43
41
AC_TRY_COMPILE ( [ int $ac_cv_tls __attribute__((tls_model("initial-exec"))) test;] , [ ] ,
44
42
ac_cv_tls_model=yes , ac_cv_tls_model=no )
45
43
CFLAGS="$save_CFLAGS"
You can’t perform that action at this time.
0 commit comments