Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79793
| Date | 2014-10-27 10:54 -0500 |
|---|---|
| Subject | Build Question: How to Add -Wl,--option Before Objects In Setup.py? |
| From | Cyd Haselton <chaselton@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15237.1414425294.18130.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Build Question: How to Add -Wl,--option Before Objects In Setup.py? Cyd Haselton <chaselton@gmail.com> - 2014-10-27 10:54 -0500
csiph-web