| 57 | Note that depending on Python installation, Python extension setup mechanism will link the library using some default architectures, e.g: {{{ppc}}}, {{{i386}}}, and/or {{{x86_64}}}, which may contain different architectures to the library's so it may raise warning message: |
| 58 | {{{ |
| 59 | ld: warning: ignoring file ..., file was built for archive which is not the architecture being linked (...) |
| 60 | }}} |
| 61 | To avoid such warning, specify the architecture(s) to be linked via environment variable {{{ARCHFLAGS}}} before invoking {{{make}}}, e.g: |
| 62 | {{{ |
| 63 | #!sh |
| 64 | $ export ARCHFLAGS="-arch x86_64" |
| 65 | $ cd pjsip-apps/src/python |
| 66 | $ sudo make |
| 67 | }}} |