Path: csiph.com!4.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Drew Parsons Newsgroups: linux.debian.maint.python,linux.debian.bugs.dist Subject: Re: overriding default compile flags when building python extensions Date: Fri, 03 May 2019 16:40:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Fri May 3 14:32:52 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -3.5 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Organization: The Debian Project Reply-To: dparsons@debian.org Mail-Reply-To: dparsons@debian.org X-Sender: dparsons@debian.org User-Agent: Roundcube Webmail/1.3.8 X-Mailing-List: archive/latest/16908 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/db09b949be88ab5c109f98edae989642@debian.org Approved: robomod@news.nic.it Lines: 17 Sender: robomod@news.nic.it X-Original-Cc: 928140@bugs.debian.org, =?UTF-8?Q?Nico_Schl=C3=B6mer?= X-Original-Date: Fri, 03 May 2019 22:32:37 +0800 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:11431 linux.debian.bugs.dist:956950 Ansgar wrote: > On Fri, 2019-05-03 at 19:49 +0800, Drew Parsons wrote: > > The first -g is the problem (in "-DNDEBUG -g -fwrapv -O2 -Wall"). > > Not sure about setup.py, but `-g0` (after `-g`) should also disable > debug information: > > +--- > | Level 0 produces no debug information at all. Thus, -g0 negates -g. > +--- Thanks Ansgar. Weird (dangerous, even) if the flags can't be controlled directly. But I can try the -g0 trick and see if it solves the problem. Drew