Re: Build issue with Advance Toolchain

From: Devrim Gündüz <devrim(at)gunduz(dot)org>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org>
Subject: Re: Build issue with Advance Toolchain
Date: 2017-05-26 14:22:24
Message-ID: 1495808544.20435.2.camel@gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Devrim Gündüz 2017-05-26 14:24:12 Re: Build issue with Advance Toolchain
Previous Message Adrian Klaver 2017-05-26 13:02:51 Re: Build issue with Advance Toolchain