Skip to content

Commit

Permalink
More python-config stupidity
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 10, 2019
1 parent 8d506a5 commit a5038bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/modules/rlm_python/configure
Original file line number Diff line number Diff line change
Expand Up @@ -2788,11 +2788,13 @@ $as_echo "$as_me: ${PYTHON_CONFIG_BIN}'s cflags were \"${python_cflags}\"" >&6;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: Sanitized cflags were \"${mod_cflags}\"" >&5
$as_echo "$as_me: Sanitized cflags were \"${mod_cflags}\"" >&6;}
python_ldflags=`${PYTHON_CONFIG_BIN} --ldflags`
python_ldflags=`${PYTHON_CONFIG_BIN} --ldflags`
{ $as_echo "$as_me:${as_lineno-$LINENO}: ${PYTHON_CONFIG_BIN}'s ldflags were \"$python_ldflags}\"" >&5
$as_echo "$as_me: ${PYTHON_CONFIG_BIN}'s ldflags were \"$python_ldflags}\"" >&6;}
mod_ldflags=$python_ldflags
mod_ldflags=`echo $python_ldflags | sed -e '\
s/-Wl,-O[[:digit:]][[: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;}
Expand Down
5 changes: 4 additions & 1 deletion src/modules/rlm_python/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ if test x$with_[]modname != xno; then
s/-DNDEBUG[[[:blank:]]]*//g'`
AC_MSG_NOTICE([Sanitized cflags were \"${mod_cflags}\"])

dnl # Strip -Wl,-O1... Is -O even a valid linker flag??
python_ldflags=`${PYTHON_CONFIG_BIN} --ldflags`
AC_MSG_NOTICE([${PYTHON_CONFIG_BIN}'s ldflags were \"$python_ldflags}\"])

mod_ldflags=$python_ldflags
mod_ldflags=`echo $python_ldflags | sed -e '\
s/-Wl,-O[[[:digit:]]][[[:blank:]]]*//g;\
'`
AC_MSG_NOTICE([Sanitized ldflags were \"${mod_ldflags}\"])

targetname="rlm_python"
Expand Down

0 comments on commit a5038bf

Please sign in to comment.