[q-lang-users] Feature request (or maybe bug report) for qcc
Brought to you by:
agraef
From: Andrew B. <and...@ya...> - 2006-12-25 23:05:50
|
I don't know if this is hard, easy, or other. What I would like is for qcc to pick up the options passed to ./configure when q was built. Here's my example. I like to keep everything I build in $HOME/local so that it does not interfere (so much) with upgrading the O/S. When I install q, I use "./configure --prefix=$HOME/local CFLAGS=-I$HOME/ local/include LDFLAGS=-L$HOME/local/lib". This works fine, although it would be nice if prefix/include and prefix/lib were added to the CFLAGS and LDFLAGS by default. It seems like a lot of projects do that, although I know that a lot of them do not. Anyhow, when I later use qcc, for example to build q-opengl, I get a bunch of errors: (cd src && make all) qcc -o opengl.la opengl_wrap.c -- --link -lglut -lGL -lGLU opengl_wrap.c:13:18: error: libq.h: No such file or directory In file included from /usr/include/machine/_types.h:28, from /usr/include/sys/_types.h:27, from /usr/include/_types.h:27, from /usr/include/string.h:60, from opengl_wrap.c:58:/usr/include/i386/_types.h: In function 'MODULE': /usr/include/i386/_types.h:31: error: storage class specified for parameter '__int8_t' /usr/include/i386/_types.h:35: error: storage class specified for parameter '__uint8_t' ... &c. It is clear that I need -I$HOME/include/include to get passed to gcc, so first try to build q-opengl with "make CFLAGS=-I$HOME/local/ include", but that does not work, and end up having to edit the Makefile. This is rather tedious, and feels unnecessary. -andrew |