mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
configure: Use -fno-builtin-memcmp.
Issue spotted by Adam Jackson <ajax at redhat.com>. http://lists.freedesktop.org/archives/mesa-dev/2011-June/009077.html
This commit is contained in:
parent
e1e03ce492
commit
1448bdf1c0
1 changed files with 8 additions and 0 deletions
|
|
@ -172,6 +172,10 @@ if test "x$GCC" = xyes; then
|
|||
|
||||
# Work around aliasing bugs - developers should comment this out
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||
|
||||
# gcc's builtin memcmp is slower than glibc's
|
||||
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
|
||||
CFLAGS="$CFLAGS -fno-builtin-memcmp"
|
||||
fi
|
||||
if test "x$GXX" = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS -Wall"
|
||||
|
|
@ -191,6 +195,10 @@ if test "x$GXX" = xyes; then
|
|||
|
||||
# Work around aliasing bugs - developers should comment this out
|
||||
CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
||||
|
||||
# gcc's builtin memcmp is slower than glibc's
|
||||
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
|
||||
CXXFLAGS="$CXXFLAGS -fno-builtin-memcmp"
|
||||
fi
|
||||
|
||||
dnl even if the compiler appears to support it, using visibility attributes isn't
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue