]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_python: Strip out -ffat-lto-objects (#4373)
authorJorge Pereira <jpereira@users.noreply.github.com>
Wed, 26 Jan 2022 19:28:17 +0000 (16:28 -0300)
committerGitHub <noreply@github.com>
Wed, 26 Jan 2022 19:28:17 +0000 (13:28 -0600)
src/modules/rlm_python/configure
src/modules/rlm_python/configure.ac

index 869e7d794b8ce455e9da569e1faae377c783b57d..f2b09447c07ef2aef520be858b8eeea44a0dbdec 100755 (executable)
@@ -2805,8 +2805,9 @@ $as_echo "$as_me: ${PYTHON_CONFIG_BIN}'s cflags were \"${python_cflags}\"" >&6;}
                        s/ -W[^ ]*/ /g;\
                        s/ -DNDEBUG[[:blank:]]*/ /g;\
                        s/ -frecord-gcc-switches/ /g;\
-                       s/ -fstack-clash-protection[[:blank:]]*/ /g;
-                       s/ -specs=[^ ]*/ /g;
+                       s/ -fstack-clash-protection[[:blank:]]*/ /g;\
+                       s/ -specs=[^ ]*/ /g;\
+                       s/ -ffat-lto-objects/ /g;
                        '`
                { $as_echo "$as_me:${as_lineno-$LINENO}: Sanitized cflags were \"${mod_cflags}\"" >&5
 $as_echo "$as_me: Sanitized cflags were \"${mod_cflags}\"" >&6;}
index 0a4f1f38ac8ecf2c78bac27915eeaff9ce92c551..9cad3bd8d20eb6e01ab5859471f0f6abf79020a6 100644 (file)
@@ -67,6 +67,7 @@ if test x$with_[]modname != xno; then
                dnl # supported by clang < 11.
                dnl # Strip -frecord-gcc-switches. We decide if this needs recording, not python.
                dnl # Strip specs as they're only supported by GCC and cause warnings under clang
+               dnl # Strip -ffat-lto-objects, We decide if we need that, not python.
                mod_cflags=`echo " $python_cflags" | sed -e '\
                        s/ -I/ -isystem/g;\
                        s/ -isysroot[[ =]]\{0,1\}[[^-]]*/ /g;\
@@ -76,8 +77,9 @@ if test x$with_[]modname != xno; then
                        s/ -W[[^ ]]*/ /g;\
                        s/ -DNDEBUG[[[:blank:]]]*/ /g;\
                        s/ -frecord-gcc-switches/ /g;\
-                       s/ -fstack-clash-protection[[[:blank:]]]*/ /g;
-                       s/ -specs=[[^ ]]*/ /g;
+                       s/ -fstack-clash-protection[[[:blank:]]]*/ /g;\
+                       s/ -specs=[[^ ]]*/ /g;\
+                       s/ -ffat-lto-objects/ /g;
                        '`
                AC_MSG_NOTICE([Sanitized cflags were \"${mod_cflags}\"])