targets/Win32/__init__.py
author b.taylor@willowglen.ca
Wed, 12 Aug 2009 13:40:20 -0600
branchcherry-pick
changeset 373 a7f26d9f214f
parent 290 3bd617ae7a05
child 621 a3ce93d63832
permissions -rwxr-xr-x
fix pyZeroconf bug where getServiceInfo returns None.
This allows the discovery window to work with targets using Avahi to advertise their services.
(patch obtained from <http://sourceforge.net/tracker/?func=detail&aid=1600775&group_id=100909&atid=628622>)
from .. import toolchain_gcc

class Win32_target(toolchain_gcc):
    extension = ".dll"
    def getBuilderLDFLAGS(self):
        return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared",
                     "-Wl,--export-all-symbols",
                     "-Wl,--enable-auto-import",
                     "-Wl,--whole-archive",
                     "-Wl,--no-whole-archive",
                     "-Wl,--exclude-libs,All"]