]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
support: Build with exceptions and asynchronous unwind tables [BZ #30587]
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 1 Jul 2023 13:29:53 +0000 (13:29 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 1 Jul 2023 13:29:53 +0000 (13:29 +0000)
Changing tst-cleanup4.c to use xread instead of read caused
the nptl/tst-cleanupx4 test to fail.  The routines in libsupport.a
need to be built with exception handling and asynchronous unwind
table support.

v2: Use "CFLAGS-.oS" instead of "override CFLAGS".

support/Makefile

index c81e3c928cf14c363c3b62abcf764a0eee049fe0..917a858bd1dca58a981cccd69c7941bb282cebcc 100644 (file)
@@ -239,6 +239,9 @@ CFLAGS-support_paths.c = \
                -DCOMPLOCALEDIR_PATH=\"$(complocaledir)\" \
                -DSYSCONFDIR_PATH=\"$(sysconfdir)\"
 
+# Build with exception handling and asynchronous unwind table support.
+CFLAGS-.oS += -fexceptions -fasynchronous-unwind-tables
+
 # In support_timespec_check_in_range we may be passed a very tight
 # range for which we should produce a correct result for expected
 # being within the observed range.  The code uses double internally