WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: I need help with understanding creating extn wiki  (Read 1741 times)

aus9

  • Guest
I need help with understanding creating extn wiki
« on: June 08, 2010, 04:45:19 PM »
Hi

Firstly I can see this page
http://wiki.tinycorelinux.com/Creating+Extensions



1)
Code: [Select]
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"

export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="-Wl,-O1"

O 0...I can see its Ohh and not zero in above
-WI,-O1..... I think is W eye....Ohh one
Also according to my eyesight, there is no gap after the comma.....is that corrrect?

Do you agree that 0 above are all Ohhs and not zeros?

EDIT...the Wl now in the forum looks like whiskey lima (l in lower case)...I am confused more...heh heh

2) cd package_name ./configure --prefix=/usr/local make -j3

should that be cd package_name ./configure --prefix=/usr/local && make -j3 or separate lines?

3)
Code: [Select]
find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null

find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null

Where am I....what pathway ...pwd when I issue above command please?

4) section 5. Adding Custom Startup Scripts

should that example include

#/bin/sh if its a script or is just straight commands ok as per eg
Code: [Select]
cd /usr/local/etc/

5) Once I know I am willing to add more explanation to the wiki.
You can guess I don't do much compiling and when I do...I have never needed to do flag stuff.

thanks in advance

PS I want to add some of that flag stuff to my .ashrc....so I want to get it right.

PS2...I am typing some of this stuff manually....as I am doing stuff in a virtual machine
.....once I get the .ashrc correct ....I can copy that into the vm
« Last Edit: June 08, 2010, 04:49:37 PM by aus9 »

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: I need help with understanding creating extn wiki
« Reply #1 on: June 08, 2010, 04:53:01 PM »
1.
copy/paste into terminal is easiest way :P
anyway, it is actually (dash)(capital W)(lower case L)(comma)(dash)(capital o)(number 1)
Hope taht's clearer for you.

2.
cd package_name
./configure --prefix=/usr/local && make -j3

3.
You should be in DESTDIR when you run those. (that way you only touch the executables and libraries that are actually in your extension)

4.
Mine include #!/bin/sh (or #!/bin/bash when I have stupid moments - but don't do that)

aus9

  • Guest
Re: I need help with understanding creating extn wiki
« Reply #2 on: June 08, 2010, 04:57:21 PM »
hi

thanks for the speedy reply

To be faster....do you agree everything is correct 'as is" and if so I am more than happy to just copy and paste?

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: I need help with understanding creating extn wiki
« Reply #3 on: June 08, 2010, 05:14:55 PM »
yes, the commands on the wiki are correct, and you can just copy and paste. It is (in my experience with tinycore - ymmv) far safer to assume the wiki is correct enough to copy and paste than to try and guess whether something is an I or an l, O or an 0.