1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3/s4 build: Add additional LDFLAGS in check_python.m4 to allow it to pass on more systems

I tested on a few different flavors of linux and FreeBSD.  I'll keep
an eye on the build machine to see if anything breaks.
This commit is contained in:
Tim Prouty 2008-11-09 22:23:46 -08:00
parent d67e7f3e15
commit 9efed3b936

View File

@ -71,8 +71,19 @@ AC_DEFUN([AC_SAMBA_PYTHON_DEVEL],
if test x$PYTHON != x
then
DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; print '-I%s -I%s %s' % (sysconfig.get_python_inc(), sysconfig.get_python_inc(plat_specific=1), sysconfig.get_config_var('CFLAGS'))"`
DISTUTILS_LDFLAGS=`$PYTHON -c "from distutils import sysconfig; print '%s %s -lpython%s -L%s' % (sysconfig.get_config_var('LIBS'), sysconfig.get_config_var('SYSLIBS'), sysconfig.get_config_var('VERSION'), sysconfig.get_config_var('LIBPL'))"`
DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; \
print '-I%s -I%s %s' % ( \
sysconfig.get_python_inc(), \
sysconfig.get_python_inc(plat_specific=1), \
sysconfig.get_config_var('CFLAGS'))"`
DISTUTILS_LDFLAGS=`$PYTHON -c "from distutils import sysconfig; \
print '%s %s -lpython%s -L%s %s -L%s' % ( \
sysconfig.get_config_var('LIBS'), \
sysconfig.get_config_var('SYSLIBS'), \
sysconfig.get_config_var('VERSION'), \
sysconfig.get_config_var('LIBDIR'), \
sysconfig.get_config_var('LDFLAGS'), \
sysconfig.get_config_var('LIBPL'))"`
TRY_LINK_PYTHON($DISTUTILS_LDFLAGS, $DISTUTILS_CFLAGS)
fi