On Fri, May 30, 2008 at 08:16:10AM -0400, Jason Tishler wrote: >On Thu, May 29, 2008 at 12:48:38PM -0400, Christopher Faylor wrote: >> Why is python even checking the version? > >Python (i.e., Distutils) is checking versions so that it calls the >appropriate driver and supplies the appropriate options. For example, >in cygwinccompiler.py we have the following: > > # ld_version >= "2.10.90" and < "2.13" should also be able to use > # gcc -mdll instead of dllwrap > # Older dllwraps had own version numbers, newer ones use the > # same as the rest of binutils ( also ld ) > # dllwrap 2.10.90 is buggy > if self.ld_version >= "2.10.90": > self.linker_dll = "gcc" > else: > self.linker_dll = "dllwrap" > > # ld_version >= "2.13" support -shared so use it instead of > # -mdll -static > if self.ld_version >= "2.13": > shared_option = "-shared" > else: > shared_option = "-mdll -static" > >> That seems very fragile to me. > >Agreed, but this stuff predates me (i.e., before 2000), so I loathe to >touch it... :,)
Aw, come on, Jason. Touch it! Destroy it! Fix it! But, seriously, could you get the same behavior by parsing the ld --help output? cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/