From 5165e4071ee4d32c3990e681417caae6b7408efa Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Thu, 31 May 2012 23:59:45 +0200 Subject: [PATCH] FreeSWITCH: Remove -arch i386/x86_64 from PYTHON_CFLAGS Speculative fix for a mod_python build issue on OSX, which is caused by '-arch i386 -arch x86_64' in the final PYTHON_CFLAGS. Filter both flags and hope OSX's universal binary toolchain is smart enough to choose a sane default. Reported-by: neilp9 in #freeswitch @ irc.freenode.net Signed-off-by: Stefan Knoblich --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 83cb4144eb..d609c4eef5 100644 --- a/configure.in +++ b/configure.in @@ -925,7 +925,7 @@ then # # python distutils found, get settings from python directly # - PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [[\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]]; print(\" \".join(flags));'`" + PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [[\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]]; print(\" \".join(flags));' | sed -e 's:-arch \(i386\|x86_64\)\+::g'`" PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print(\" \".join(libs));'`" PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print(\"python\" + sysconfig.get_config_var(\"VERSION\"));'`" PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_config_var(\"LIBDIR\"));'`"