WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: WIKI a question on Creating Extensions  (Read 2297 times)

aus9

  • Guest
WIKI a question on Creating Extensions
« on: May 12, 2010, 04: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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: WIKI a question on Creating Extensions
« Reply #1 on: May 12, 2010, 04: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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: WIKI a question on Creating Extensions
« Reply #2 on: May 12, 2010, 06:06:27 AM »
If you want them to be permanent, put them to ~/.ashrc
The only barriers that can stop you are the ones you create yourself.

aus9

  • Guest
Re: WIKI a question on Creating Extensions
« Reply #3 on: May 12, 2010, 05: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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: WIKI a question on Creating Extensions
« Reply #4 on: May 13, 2010, 01:52:07 AM »
If you run bash as your shell; otherwise no need really.
The only barriers that can stop you are the ones you create yourself.

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: WIKI a question on Creating Extensions
« Reply #5 on: May 13, 2010, 02: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).

aus9

  • Guest
Re: WIKI a question on Creating Extensions
« Reply #6 on: May 13, 2010, 04: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.
« Last Edit: May 13, 2010, 04:27:47 PM by aus9 »