{ $as_echo "$as_me:${as_lineno-$LINENO}: ${PYTHON_CONFIG_BIN}'s cflags were \"${python_cflags}\"" >&5
$as_echo "$as_me: ${PYTHON_CONFIG_BIN}'s cflags were \"${python_cflags}\"" >&6;}
- mod_cflags=`echo $python_cflags | sed -e '\
- s/-I/-isystem/g;\
- s/-isysroot[ =]\{0,1\}[^-]*//g;\
- s/-O[^[[:blank:]]]*//g;\
- s/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]//g;\
- s/-g[^ ]*//g;\
- s/-W[^ ]*//g;\
- s/-DNDEBUG[[:blank:]]*//g;\
- s/-fstack-clash-protection[[:blank:]]*//g;
+ mod_cflags=`echo " $python_cflags" | sed -e '\
+ s/ -I/ -isystem/g;\
+ s/ -isysroot[ =]\{0,1\}[^-]*//g;\
+ s/ -O[^[[:blank:]]]*//g;\
+ s/ -Wp,-D_FORTIFY_SOURCE=[[:digit:]]//g;\
+ s/ -g[^ ]*//g;\
+ s/ -W[^ ]*//g;\
+ s/ -DNDEBUG[[:blank:]]*//g;\
+ s/ -frecord-gcc-switches//g;\
+ s/ -fstack-clash-protection[[:blank:]]*//g;
'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: Sanitized cflags were \"${mod_cflags}\"" >&5
$as_echo "$as_me: Sanitized cflags were \"${mod_cflags}\"" >&6;}
dnl # Strip -DNDEBUG
dnl # Strip -stack-clash-protection. We don't need it for our module and it's not
dnl # supported by clang < 11.
- mod_cflags=`echo $python_cflags | sed -e '\
- s/-I/-isystem/g;\
- s/-isysroot[[ =]]\{0,1\}[[^-]]*//g;\
- s/-O[[^[[:blank:]]]]*//g;\
- s/-Wp,-D_FORTIFY_SOURCE=[[[:digit:]]]//g;\
- s/-g[[^ ]]*//g;\
- s/-W[[^ ]]*//g;\
- s/-DNDEBUG[[[:blank:]]]*//g;\
- s/-fstack-clash-protection[[[:blank:]]]*//g;
+ mod_cflags=`echo " $python_cflags" | sed -e '\
+ s/ -I/ -isystem/g;\
+ s/ -isysroot[[ =]]\{0,1\}[[^-]]*//g;\
+ s/ -O[[^[[:blank:]]]]*//g;\
+ s/ -Wp,-D_FORTIFY_SOURCE=[[[:digit:]]]//g;\
+ s/ -g[[^ ]]*//g;\
+ s/ -W[[^ ]]*//g;\
+ s/ -DNDEBUG[[[:blank:]]]*//g;\
+ s/ -frecord-gcc-switches//g;\
+ s/ -fstack-clash-protection[[[:blank:]]]*//g;
'`
AC_MSG_NOTICE([Sanitized cflags were \"${mod_cflags}\"])