gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] SConstruct: Use target_python when constructing extensio


From: Gary E. Miller
Subject: Re: [PATCH 2/3] SConstruct: Use target_python when constructing extension name
Date: Thu, 6 Feb 2020 19:38:09 -0800

Yo Ladislav!

On Thu, 6 Feb 2020 09:18:32 +0100
Ladislav Michl <address@hidden> wrote:

> lets start over here...

Uh, oh.  Can't we stop going in circles?

> > Well, config.GetPythonValue() uses the target_python, but it works
> > by executing the target_python on the build host, not the target
> > host.  If the build host is on Intel, and building for MIPS, then
> > the target_python will not run on the build host.  
> 
> As you said, you are not cross-compiling, so lets focus on native
> builds:

Sigh, I explained this just last week to someone else on IRC...

> x86_64-linux-gnu-gcc -pthread -o crc24q-py_3_7_6_final_0.so -c
> -fno-strict-aliasing -Wdate-time
> -fdebug-prefix-map=/build/python2.7-x6KfBw/python2.7-2.7.17=.
> -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv
> -O2 -Wall -Wstrict-prototypes -fPIC -D_FORTIFY_SOURCE=2 -DNDEBUG
> -I/usr/include/python2.7 crc24q.c

You realize where those parameters came from?  Right?

They came from your target_python, not from SCons.  Your target python
was built weird.  Fix that.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpbVLhVHqpRc.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]