LoginSignup
1
1

More than 5 years have passed since last update.

Pythonのコンパイル時にgcc-4.2を使用する(MacOS)

Posted at

llvm-gcc-4.2 だと幾つかのテストが失敗するようなのでgcc-4.2でコンパイルした.
CPPFLAGSでgcc-4.2用のヘッダファイルの場所を明示してやる.(やらない場合,コンパイルエラーになった.)
環境によっていろいろ違う可能性あり.

pythonbrew install --configure="CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g++-4.2 CPPFLAGS='-I/Developer/SDKs/MacOSX10.6.sdk/usr/lib/gcc/i686-apple-darwin10/4.2.1/include'" 2.7.3
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1