Re: [psycopg] Build issue with Advance Toolchain - Mailing list psycopg

From Devrim Gündüz
Subject Re: [psycopg] Build issue with Advance Toolchain
Date
Msg-id 1495808544.20435.2.camel@gunduz.org
Whole thread Raw
In response to Re: [psycopg] Build issue with Advance Toolchain  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Responses Re: [psycopg] Build issue with Advance Toolchain
List psycopg
Hi Daniele,

On Fri, 2017-05-26 at 13:31 +0100, Daniele Varrazzo wrote:
> Do `python-config` --cflags and --ldflags return a sensible output?

-bash-4.2$ python-config --cflags
-I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8
-D_GNU_SOURCE-fPIC -fwrapv -O3 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power8 -D_GNU_SOURCE
-fPIC-fwrapv -O3 
-bash-4.2$ python-config --ldflags
-lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic

FWIW, here is what I export in the spec file for all Power packages (atpath: /opt/at10.0)

        CFLAGS="${CFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8
-I%{atpath}/include"
        CXXFLAGS="${CXXFLAGS} $(echo %{__global_cflags} | sed 's/-O2/-O3/g') -m64 -mcpu=power8 -mtune=power8
-I%{atpath}/include"
        LDFLAGS="-L%{atpath}/%{_lib}"
        CC=%{atpath}/bin/gcc; export CC

Regards,
--
Devrim Gündüz
EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

Attachment

psycopg by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [psycopg] Build issue with Advance Toolchain
Next
From: Devrim Gündüz
Date:
Subject: Re: [psycopg] Build issue with Advance Toolchain