DSL Tips and Tricks :: easier way to compile stuff for DSL
Try adding that include to the start of scripts/mkdep.c..
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?
/tmp, IMO.
The kernel ignores CFLAGS on purpose. Suppose you got something like -march=athlon64 for normal compiling for speed. Then you need a kernel for 486. And of course forgot to unset cflags.
This happens more often than not
I went with /tmp and submitted the extension - thanks for the help.
original here.