Python interface with CFLAGS

From: Alexander Klimov <ask(at)wisdom(dot)weizmann(dot)ac(dot)il>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Python interface with CFLAGS
Date: 2001-01-22 12:32:11
Message-ID: Pine.SUN.4.21.0101221412430.21767-100000@dardar.wisdom.weizmann.ac.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi.

uname -a
SunOS iridium 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-5_10

python
Python 2.0b1 (#5, Sep 12 2000, 13:36:09)
[GCC 2.95.2 19991024 (release)] on sunos5

I use cvs version, after update I tried:
make distclean; configure --with-tcl --with-perl --with-python
--with-openssl --with-CXX && make CFLAGS='-O2' CXXFLAGS='-O2'

And I got:
...
make[4]: Entering directory
`/export/home/ask/build/postgresql-cvs/src/interfaces/python'
gcc -I../../../src/interfaces/libpq -I../../../src/include -O2 -c
./pgmodule.c
./pgmodule.c:29: Python.h: No such file or directory
make[4]: *** [pgmodule.o] Error 1
make[4]: Leaving directory
`/export/home/ask/build/postgresql-cvs/src/interfaces/python'

If I do just make it compiles OK.

From inspection of Makefile it is clear, that I should specify $OPT
variable to specify optimisation, from the other hand the rest of
postgress has something like COPT and CUSTOM_COPT. It is looks like
something is inconsistent here (or at least something about it should be
said in documentation).

Regards,
ASK

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dmitri E. Gurevich 2001-01-22 16:13:08 Strange error in PHP/Postgre on RadHat?
Previous Message Praveen Shetty 2001-01-21 21:46:02 Problem...