【问题标题】:configure flags/options to build 32 bit python on mac (OS X)配置标志/选项以在 mac (OS X) 上构建 32 位 python
【发布时间】:2018-03-29 19:02:51
【问题描述】:

Python 嵌入在 32 位和 64 位版本的应用程序中。我既需要发布我的代码,也需要从源代码构建以进行调试。 我尝试了唯一一个似乎是 32 位特定的配置变量(--with-universal-archs=32-bit),但这似乎没有向 gcc 添加任何标志。例如:

 gcc -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c

【问题讨论】:

    标签: python macos build configure 32-bit


    【解决方案1】:

    来自How do I build OpenSSL as 32-bit (i386) on Mac OS X?

    $ export CFLAGS="-arch i386"
    $ export LDFLAGS="-arch i386"
    $ ./configure
    $ make
    

    【讨论】:

      猜你喜欢
      • 2018-08-18
      • 2012-02-03
      • 2011-05-04
      • 1970-01-01
      • 2013-04-07
      • 2011-10-18
      • 1970-01-01
      • 2012-01-13
      • 2011-03-13
      相关资源
      最近更新 更多