(alternatively you could just add -Wl,--gc-sections to the LDFLAGS section of the appropriate makefile)

make

If you add --gc-sections from the start then programs that use intermediate static libraries (such as foo.a) instead of objects (like bar.o) will fail to compile properly since the final program can't find things that were garbage collected from the libraries and can't link properly even though the files are redundant or unused (this mostly affects programs that use plugins)

You can 90% of the time add these to CFLAGS/CCFLAGS to save some less significant size (remove them if they cause problems)
-momit-leaf-frame-pointer
-fomit-frame-pointer
-mpreferred-stack-boundary=2
-fmerge-all-constants or -fmerge-constants (more conservative)

The LDFLAG
--no-keep-memory
may be especially usefull for puppy especially if it is loaded in RAM - use less memory and more disk i/o, but I need to study/test that one

and for C programs
-combine_________________Check out my github repositories. I may eventually get around to updating my blogspot.Last edited by technosaurus on Sun 11 Jul 2010, 13:06; edited 1 time in total

(Then in /usr/local/apps/$MY_PROGRAM_NAME make a symlink for AppRun to the main executable and a symlink for .DirIcon to any image)

I only recommend this for programs - not libraries
If you want to include additional libraries this way I would recommend first compiling the libraries with ./configure --enable-static --disable-shared before compiling your program (that way only the necessaryparts get included - sometimes only a couple of kb of a multi-MB library)_________________Check out my github repositories. I may eventually get around to updating my blogspot.

I'm attempting to follow the directions in the first method. My goal is to implement a driver I found for my synaptics touchpad that is on my laptop. The issue is erratic pointer behavior, and random hangs. Makes it all quite difficult to use (so I just plugged in a usb mouse). But, this driver supposedly will take care of those problems.

I'm running puppy 4.3.1 on a Compaq presario V5000.

So, everything goes fine until I get to the command line step. I type in ./configure, it tells me something like 'no such file.'

I'm assuming that some dependency is not filled for the command line program to work, or the directions I'm following are for a model of command line usage which is no longer in effect.

there should be a readme file of some kind... sometimes you need to run ./autogen.sh to build ./configure ... others require editing the make files, others now use waf instead - either way, it should be in the documentation - please read it

synaptics is already supported (mine is working) so you shouldn't need to build a "driver" I think jemimah has already built flsynclient, which may work to configure it

kernel drivers have a whole different build process than software - there is a whole category in additional software dedicated to drivers_________________Check out my github repositories. I may eventually get around to updating my blogspot.

yes just use pet2tgz and then tar -xf to expand them all ... then copy the contents all into 1 tree (in appropriately named folder)_________________Check out my github repositories. I may eventually get around to updating my blogspot.

Bonus tip
here are a couple of flags to (try to) add to CXXFLAGS for C++ based compiles:
-fno-rtti -fno-exceptions
(they don't always both work but can save 5-10% of total compiled size)_________________Check out my github repositories. I may eventually get around to updating my blogspot.

I tracked down a bunch of sites that will produce a tarball of the latest development code directly from version control- over 4000 projects from gnu.org,kernel.org & repo.or.cz (+uclibc,uclibc++,busybox & buildroot) - pretty much all the major projects that support this function.

hopefully this reduces your search time trying to get the latest code.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum