Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79793 > unrolled thread

Build Question: How to Add -Wl,--option Before Objects In Setup.py?

Started byCyd Haselton <chaselton@gmail.com>
First post2014-10-27 10:54 -0500
Last post2014-10-27 10:54 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Build Question: How to Add -Wl,--option Before Objects In Setup.py? Cyd Haselton <chaselton@gmail.com> - 2014-10-27 10:54 -0500

#79793 — Build Question: How to Add -Wl,--option Before Objects In Setup.py?

FromCyd Haselton <chaselton@gmail.com>
Date2014-10-27 10:54 -0500
SubjectBuild 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)?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web