Skip site navigation (1) Skip section navigation (2)

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: (view raw or whole thread)
Lists: pgsql-bugs

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

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
gcc   -I../../../src/interfaces/libpq -I../../../src/include -O2 -c
./pgmodule.c:29: Python.h: No such file or directory
make[4]: *** [pgmodule.o] Error 1
make[4]: Leaving directory

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



pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group