Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Sun, 11 Nov 2001 23:05:34 -0500 From: Jason Tishler To: Charles Wilson Cc: cygwin-apps AT cygwin DOT com Subject: Python _cursesmodule build problem (was Re: [RFD] ncurses update) Message-ID: <20011111230534.C1876@dothill.com> Mail-Followup-To: Charles Wilson , cygwin-apps AT cygwin DOT com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="AX9bAmcEowA32JqI" Content-Disposition: inline In-Reply-To: <3BA3A5F4.8010100@ece.gatech.edu> User-Agent: Mutt/1.3.18i --AX9bAmcEowA32JqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Chuck, On Sat, Sep 15, 2001 at 03:03:16PM -0400, Charles Wilson wrote: > #1. Now use the auto-import stuff instead of __declspec(dllXXport) > modifiers. No more need for *compile-time* flags at all; only linktime > flags: -static or -Wl,--enable-auto-import. However, ncurses does some > of the "bad" things (the ones that today's binutils warns about, but the > previous binutils created buggy code for). The fix for this requires > changes in the ncurses library code (specifically, configure using > BROKEN_LINKER -- which changes some of the exported DATA into functions. > If you recompile apps, you don't need to worry about this though; it's ^^^^ > transparently handled in ncurses_cfg.h/curses.h). I submitted the attached patch in order for Python (specifically the _cursesmodule module) to build cleanly again under the latest binutils. The above seems to imply that I shouldn't need this patch. Did I misinterpret the above? Thanks, Jason --AX9bAmcEowA32JqI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="_cursesmodule.c.diff" Index: _cursesmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/_cursesmodule.c,v retrieving revision 2.60 diff -c -r2.60 _cursesmodule.c *** _cursesmodule.c 2001/11/11 14:49:15 2.60 --- _cursesmodule.c 2001/11/12 03:32:58 *************** *** 112,117 **** --- 112,121 ---- #define STRICT_SYSV_CURSES #endif + #ifdef __CYGWIN__ + #define BROKEN_LINKER 1 + #endif + #define CURSES_MODULE #include "py_curses.h" --AX9bAmcEowA32JqI--