Juanito
Group: Members
Posts: 1601
Joined: Sep. 2005 |
|
Posted: Oct. 27 2007,17:32 |
|
Adding #include <sys/param.h> to /scripts/mkdep.c does the trick - thanks.
I hadn't noticed it before but, compiling the kernel does not seem to recognise export CFLAGS=-I/opt/compile/include - I had to symlink /usr/include -> /opt/compile/include to get make menuconfig to work. This probably explains (somehow) why #include <sys/param.h> is needed when compiling from /opt whereas it is not needed when using gcc1-with-libs or debs.
The best way I can think of to give the user a choice of which libpng headers to use with an eventual uci is to use symlinks ../include/libpng.h -> /somewhere/libpng.h. The user would then modify /somewhere/libpng.h to either:
../include/libpng1/libpng.h ../include/libpng12/libpng.h ../include/libpng2/libpng.h
Is there a better way to do this? What is the best location for /somewhere - /tmp, /var, /home/dsl, or?
|