Disable dtrace for the arm architecture due to FTBFS during gcc compiling

Temporary workaround for BZ#2026600

Problem with the GCC is already beeing discussed in upstream's Bugzilla
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395

This commit should be reverted when the GCC fixes the issue on their
side
This commit is contained in:
Lukas Javorsky 2021-11-25 10:36:39 +01:00
parent 17657ce119
commit b3e0e11edd
1 changed files with 8 additions and 0 deletions

View File

@ -845,7 +845,11 @@ fi
-DGRN_DATA_DIR=share/%{name}-server/groonga \
-DGROONGA_NORMALIZER_MYSQL_PROJECT_NAME=%{name}-server/groonga-normalizer-mysql \
-DENABLED_LOCAL_INFILE=ON \
%ifarch %{arm}
-DENABLE_DTRACE=OFF \
%else
-DENABLE_DTRACE=ON \
%endif
-DSECURITY_HARDENED=ON \
-DWITH_WSREP=%{?with_galera:ON}%{!?with_galera:OFF} \
-DWITH_INNODB_DISALLOW_WRITES=%{?with_galera:ON}%{!?with_galera:OFF} \
@ -875,6 +879,10 @@ fi
-DCONNECT_WITH_JDBC=OFF \
%{?with_debug: -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN=OFF -DWITH_INNODB_EXTRA_DEBUG=ON -DWITH_VALGRIND=ON}
# The DTRACE option started to fail on the armv7hl architecture.
# This issue is already beeing discussed in the GCC upstream bugzilla.
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395
# Whenever this issue is fixed in the GCC, we can enable the DTRACE for ARM again.
CFLAGS="$CFLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
# force PIC mode so that we can build libmysqld.so