aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/configure.ac
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-03-25 16:19:29 -0700
committerCaroline Tice <cmtice@google.com>2016-03-25 16:19:29 -0700
commit41c11c2a743ea85be67d0840dbbb6d5125bb8798 (patch)
tree4f693e051b138f50cdfad035b29b01f4b6afbe07 /gcc-4.9/configure.ac
parentac16f08b86701ecf70e32f4ead8db63d92603808 (diff)
downloadtoolchain_gcc-41c11c2a743ea85be67d0840dbbb6d5125bb8798.zip
toolchain_gcc-41c11c2a743ea85be67d0840dbbb6d5125bb8798.tar.gz
toolchain_gcc-41c11c2a743ea85be67d0840dbbb6d5125bb8798.tar.bz2
Add top-level flag, --enable-libatomic-ifuncs=[yes/no]
This CL adds a top-level configure flag, --enable-libatomic-ifuncs. IF this is set to 'no', then libatomic will not be configured/built to use IFUNC. This is to fix https://buganizer.corp.google.com/issues/22699878 Change-Id: I76741fe854fc9c32a230b67c72920adfb00473ee
Diffstat (limited to 'gcc-4.9/configure.ac')
-rw-r--r--gcc-4.9/configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/configure.ac b/gcc-4.9/configure.ac
index e04fdfe..b78629a 100644
--- a/gcc-4.9/configure.ac
+++ b/gcc-4.9/configure.ac
@@ -2556,6 +2556,18 @@ AC_ARG_ENABLE(bionic-libs,
[enable_bionic_libs=no])
AC_MSG_RESULT($enable_bionic_libs)
+# Use same top-level configure hooks in libatomic.
+AC_MSG_CHECKING([for --enable-libatomic-ifuncs])
+AC_ARG_ENABLE(libatomic-ifuncs,
+[ --enable-bionic-libs Enable/disable IFUNCs in libatomic library ],
+[case "$enableval" in
+ yes) enable_libatomic_ifuncs=yes ;;
+ no) enable_libatomic_ifuncs=no ;;
+ *) enable_libatomic_ifuncs=yes;;
+ esac],
+[enable_libatomic_ifuncs=yes])
+AC_MSG_RESULT($enable_libatomic_ifuncs)
+
# Record target_configdirs and the configure arguments for target and
# build configuration in Makefile.
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`