From: Jorge Pereira Date: Wed, 21 Oct 2020 23:53:02 +0000 (-0300) Subject: rlm_python3: Strip out -frecord-gcc-switches #3693 (#3699) X-Git-Tag: release_3_0_22~360 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f0e5bc41ac5dfcf59561a98e00ef09cedd87189;p=thirdparty%2Ffreeradius-server.git rlm_python3: Strip out -frecord-gcc-switches #3693 (#3699) We decide if enable that yes or no. --- diff --git a/doc/ChangeLog b/doc/ChangeLog index 1f9451e9d75..e9531311d1b 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -68,6 +68,7 @@ FreeRADIUS 3.0.22 Tue 24 Mar 2020 12:00:00 EDT urgency=low * Use better API when decoding DHCP packets, to avoid unnecessary work. This improves performance noticably. * Parse locale-dependent dates. Fixes #3602. + * Strip out "-frecord-gcc-switches" from rlm_python3 configure build. Fixes #3693 FreeRADIUS 3.0.21 Tue 24 Mar 2020 12:00:00 EDT urgency=low Feature improvements diff --git a/src/modules/rlm_python3/configure b/src/modules/rlm_python3/configure index 363cdb31c26..09258d604d9 100755 --- a/src/modules/rlm_python3/configure +++ b/src/modules/rlm_python3/configure @@ -3174,6 +3174,7 @@ $as_echo "$as_me: ${PYTHON3_CONFIG_BIN}'s cflags were \"${python3_cflags}\"" >&6 s/-g[^ ]*//g;\ s/-W[^ ]*//g;\ s/-DNDEBUG[[:blank:]]*//g;\ + s/-frecord-gcc-switches//g; s/-specs=[^ ]*//g '` { $as_echo "$as_me:${as_lineno-$LINENO}: Sanitized cflags were \"${mod_cflags}\"" >&5 diff --git a/src/modules/rlm_python3/configure.ac b/src/modules/rlm_python3/configure.ac index 8f947d5349b..7b035ae4eeb 100644 --- a/src/modules/rlm_python3/configure.ac +++ b/src/modules/rlm_python3/configure.ac @@ -48,6 +48,7 @@ if test x$with_[]modname != xno; then 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 -frecord-gcc-switches, We decide if we need that. not python. 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;\ @@ -57,6 +58,7 @@ if test x$with_[]modname != xno; then s/-g[[^ ]]*//g;\ s/-W[[^ ]]*//g;\ s/-DNDEBUG[[[:blank:]]]*//g;\ + s/-frecord-gcc-switches//g;\ s/-specs=[^ ]*//g; '` AC_MSG_NOTICE([Sanitized cflags were \"${mod_cflags}\"])