]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More filtering of ldflags
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Sep 2019 20:09:35 +0000 (15:09 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Sep 2019 20:09:35 +0000 (15:09 -0500)
src/modules/rlm_python/configure
src/modules/rlm_python/configure.ac

index 527a8e05d4c04322c43ffe7f003eb34031812eea..fe64f9bfc148af107560c223d1d5d3e13b9929d0 100755 (executable)
@@ -2794,6 +2794,7 @@ $as_echo "$as_me: ${PYTHON_CONFIG_BIN}'s ldflags were \"$python_ldflags}\"" >&6;
 
        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;}
index 094e4439fbeabb0aa804c744deafb8b2f55ac2f8..c1e0000cca2dc0ce5fa06e319e4b9132fd35622a 100644 (file)
@@ -51,11 +51,13 @@ if test x$with_[]modname != xno; then
        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}\"])