File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ mkdir debug
547547(
548548 cd debug
549549 # Attempt to remove any optimisation flags from the debug build
550- optflags=$(echo "%{optflags}" | sed -e 's/-O2 / /' -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /' -e 's/%{_lto_cflags}/ /')
550+ optflags=$(echo "%{optflags}" | sed -e 's/-O2 / /' -e 's/-Wp,-U_FORTIFY_SOURCE,- D_FORTIFY_SOURCE=[0-9] / /' -e 's/%{_lto_cflags}/ /')
551551 cmake ../%{src_dir} \
552552 -DBUILD_CONFIG=mysql_release \
553553 -DINSTALL_LAYOUT=RPM \
@@ -572,7 +572,7 @@ mkdir debug
572572 -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
573573 -DCOMPILATION_COMMENT_SERVER="%{compilation_comment_server_debug}" \
574574 -DMYSQL_SERVER_SUFFIX="%{?server_suffix}"
575- echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/my_config.h ; echo END_DEBUG_CONFIG
575+ echo BEGIN_DEBUG_CONFIG ; grep -E '^#define' include/my_config.h ; echo END_DEBUG_CONFIG
576576 make %{?_smp_mflags} VERBOSE=1
577577)
578578
@@ -603,7 +603,7 @@ mkdir release
603603 -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
604604 -DCOMPILATION_COMMENT_SERVER="%{compilation_comment_server_release}" \
605605 -DMYSQL_SERVER_SUFFIX="%{?server_suffix}"
606- echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/my_config.h ; echo END_NORMAL_CONFIG
606+ echo BEGIN_NORMAL_CONFIG ; grep -E '^#define' include/my_config.h ; echo END_NORMAL_CONFIG
607607 make %{?_smp_mflags} VERBOSE=1
608608)
609609
You can’t perform that action at this time.
0 commit comments