How to pass flag to gcc in Python setup.py script?

后端 未结 1 427
谎友^
谎友^ 2020-12-03 07:26

I\'m writing a Python extension in C that requires the CoreFoundation framework (among other things). This compiles fine with:

gcc -o foo foo.c -framework Co         


        
1条回答
  •  -上瘾入骨i
    2020-12-03 07:32

    Maybe you need to set extra_link_args, too? extra_compile_args is used when compiling the source code, extra_link_args when linking the result.

    0 讨论(0)
提交回复
热议问题