Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11429

Re: overriding default compile flags when building python extensions

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Ansgar <ansgar@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: overriding default compile flags when building python extensions
Date Fri, 03 May 2019 14:10:02 +0200
Message-ID <xTFaN-6JL-1@gated-at.bofh.it> (permalink)
References <xTERr-6ns-3@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri May 3 12:07:21 2019
Old-Return-Path <ansgar@debian.org>
X-Amavis-Spam-Status No, score=-6.363 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, SARE_MSGID_LONG40=0.637] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
User-Agent Evolution 3.30.5-1
MIME-Version 1.0
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16906
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/de57fe4058812fe0c4da72e469f50b1c0c019b8e.camel@43-1.org
Approved robomod@news.nic.it
Lines 18
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 03 May 2019 14:06:40 +0200
X-Original-Message-ID <de57fe4058812fe0c4da72e469f50b1c0c019b8e.camel@43-1.org>
X-Original-References <c7f3205caf5ddd8bac8452a1d12b0e9b@debian.org>
Xref csiph.com linux.debian.maint.python:11429

Show key headers only | View raw


On Fri, 2019-05-03 at 19:49 +0800, Drew Parsons wrote:
> The first -g is the problem (in "-DNDEBUG -g -fwrapv -O2 -Wall").  The 
> advice from the internet (stackoverflow) is exceedingly poor on this 
> question, in most cases addressing how to add flags, not how to change 
> the existing default flags. Alternatives like
>    OPT="" python3 ./setup.py
> simply do not work.

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.
+---

Ansgar

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

overriding default compile flags when building python extensions Drew Parsons <dparsons@debian.org> - 2019-05-03 13:50 +0200
  Re: overriding default compile flags when building python extensions Ansgar <ansgar@debian.org> - 2019-05-03 14:10 +0200
  Re: overriding default compile flags when building python extensions Drew Parsons <dparsons@debian.org> - 2019-05-03 16:40 +0200

csiph-web