Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79793 > unrolled thread
| Started by | Cyd Haselton <chaselton@gmail.com> |
|---|---|
| First post | 2014-10-27 10:54 -0500 |
| Last post | 2014-10-27 10:54 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Build Question: How to Add -Wl,--option Before Objects In Setup.py? Cyd Haselton <chaselton@gmail.com> - 2014-10-27 10:54 -0500
| From | Cyd Haselton <chaselton@gmail.com> |
|---|---|
| Date | 2014-10-27 10:54 -0500 |
| Subject | Build Question: How to Add -Wl,--option Before Objects In Setup.py? |
| Message-ID | <mailman.15237.1414425294.18130.python-list@python.org> |
I need to add a linker option to the command(s) run by setup.py when
building various objects. I'm not familiar with Python at all, so I
basically copied and modified a line from one area of the script to
another
ext_modules=[Extension('_struct', ['_struct.c'], extra_link_args =
['Wl,--allow-shlib-undefined'])],
*snip*
Unfortunately this seems to append the option to the end of the
command line. What's the best (fastest) way to add it before the
object being built (objectname.o)?
Back to top | Article view | comp.lang.python
csiph-web