Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (15) </ ... 10 11 12 13 14 [15] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: easier way to compile stuff for DSL, chroot + debootstrap< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Oct. 27 2007,16:22 QUOTE

Try adding that include to the start of scripts/mkdep.c..

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Oct. 27 2007,17:32 QUOTE

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?
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Oct. 27 2007,18:08 QUOTE

/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 :p


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Nov. 01 2007,12:01 QUOTE

I went with /tmp and submitted the extension - thanks for the help.
Back to top
Profile PM 
73 replies since June 18 2007,19:08 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (15) </ ... 10 11 12 13 14 [15] >/
reply to topic new topic new poll
Quick Reply: easier way to compile stuff for DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code