s/-Wp,-D_FORTIFY_SOURCE=[[:digit:]]//g;\
s/-g[^ ]*//g;\
s/-W[^ ]*//g;\
- s/-DNDEBUG[[:blank:]]*//g;
+ s/-DNDEBUG[[:blank:]]*//g;\
+ s/-specs=[^ ]*//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 debug symbol flags (-g[0-9]?). We decide on debugging symbols, not python
dnl # Strip -W*, we decide what warnings are important
dnl # Strip -DNDEBUG
+ dnl # Strip -specs=/path/whatever.specs, We don't need the compiler .specs that comes from Python
mod_cflags=`echo $python3_cflags | sed -e '\
s/-I/-isystem/g;\
s/-isysroot[[ =]]\{0,1\}[[^-]]*//g;\
s/-Wp,-D_FORTIFY_SOURCE=[[[:digit:]]]//g;\
s/-g[[^ ]]*//g;\
s/-W[[^ ]]*//g;\
- s/-DNDEBUG[[[:blank:]]]*//g;
+ s/-DNDEBUG[[[:blank:]]]*//g;\
+ s/-specs=[^ ]*//g;
'`
AC_MSG_NOTICE([Sanitized cflags were \"${mod_cflags}\"])