| 71 | * if you are building a release version of osgeo4w-setup.exe (meaning it will be uploaded to the OSGeo [http://download.osgeo.org/osgeo4w/ download server]): |
| 72 | 1. remove debugging symbols with the cygwin command: |
| 73 | {{{ |
| 74 | strip -s setup.exe |
| 75 | }}} |
| 76 | the file should now be around a MB in size |
| 77 | 2. compress the exe using the UPX utility, with the cygwin command: |
| 78 | {{{ |
| 79 | upx -9 setup.exe |
| 80 | }}} |
| 81 | the file should now be around 400 KB in size |
| 82 | * if the UPX command returns the following error: |
| 83 | {{{ |
| 84 | CantPackException: TLS callbacks are not supported |
| 85 | }}} |
| 86 | * UPX does not support executables with .tls sections, and apparently for mingw-runtime version 3.18 TLS callbacks are default (see [http://www.cygwin.com/ml/cygwin-apps/2010-03/msg00075.html cygwin-apps discussion] |
| 87 | * so the temporary workaround is: |
| 88 | * use the cygwin installer to revert to the mingw-runtime version 3.17 (inside the /Libs section of the package installer) |