Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: aus9 on May 12, 2010, 07:25:57 AM

Title: WIKI a question on Creating Extensions
Post by: aus9 on May 12, 2010, 07:25:57 AM
Hi

I do not normally compile stuff as I come from the land of deb files.

Those export commands....eg

Code: [Select]
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
Do I need to issue this every time I compile something or will it be remembered somewhere.

If remembered, where do I look to see if it has persisted over reboots?

any clues will be greatly appreciated.

regards

gordy
Title: Re: WIKI a question on Creating Extensions
Post by: Juanito on May 12, 2010, 07:31:23 AM
Do I need to issue this every time I compile something or will it be remembered somewhere.

If you do everything from the same terminal window, it will be remembered as long as the terminal window stays open. If you close the terminal window and open another one, you will need to enter the command again.
Title: Re: WIKI a question on Creating Extensions
Post by: curaga on May 12, 2010, 09:06:27 AM
If you want them to be permanent, put them to ~/.ashrc
Title: Re: WIKI a question on Creating Extensions
Post by: aus9 on May 12, 2010, 08:00:47 PM
hi guys

thats what I was looking for.

thanks

2) Now I am looking at my tce persistent folder

bash does not show up in onboot.lst  but is in my optional list.

I am not sure what package pulled in bash, it is not a depend of compiletc and binutils has no depends

Should I add it to .bashrc as well?
Title: Re: WIKI a question on Creating Extensions
Post by: curaga on May 13, 2010, 04:52:07 AM
If you run bash as your shell; otherwise no need really.
Title: Re: WIKI a question on Creating Extensions
Post by: ^thehatsrule^ on May 13, 2010, 05:34:10 PM
I think .profile may be read if .bash_profile doesn't exist, depending on how you invoke bash.  It's the easiest to just try it out (or refer to their docs).
Title: Re: WIKI a question on Creating Extensions
Post by: aus9 on May 13, 2010, 07:23:27 PM
thanks

Trivia.....what shell am I using
http://www.notesbit.com/index.php/scripts-unix/linux-unix-how-do-i-know-which-shell-i-am-using/

my results

Code: [Select]
echo $shell

tc@box:~$ echo $0   
/bin/sh
tc@box:~$ ls -al /bin/sh
lrwxrwxrwx    1 root     root             7 May 14 06:53 /bin/sh -> busybox
tc@box:~$ ps -p $$
  PID TTY          TIME CMD
 5393 pts/0    00:00:00 sh

so I am assuming that as I have link to busybox....I am not using bash so must still be ash.