mod_ldflags=`echo $python_ldflags | sed -e '\
s/-Wl,-O[[:digit:]][[:blank:]]*//g;\
+ s/-Wl,-Bsymbolic-functions[[:blank:]]*//g;\
'`
{ $as_echo "$as_me:${as_lineno-$LINENO}: Sanitized ldflags were \"${mod_ldflags}\"" >&5
$as_echo "$as_me: Sanitized ldflags were \"${mod_ldflags}\"" >&6;}
AC_MSG_NOTICE([Sanitized cflags were \"${mod_cflags}\"])
dnl # Strip -Wl,-O1... Is -O even a valid linker flag??
+ dnl # Strip -Wl,-Bsymbolic-functions as thats not always supported or required
python_ldflags=`${PYTHON_CONFIG_BIN} --ldflags`
AC_MSG_NOTICE([${PYTHON_CONFIG_BIN}'s ldflags were \"$python_ldflags}\"])
mod_ldflags=`echo $python_ldflags | sed -e '\
s/-Wl,-O[[[:digit:]]][[[:blank:]]]*//g;\
+ s/-Wl,-Bsymbolic-functions[[[:blank:]]]*//g;\
'`
AC_MSG_NOTICE([Sanitized ldflags were \"${mod_ldflags}\"])