Good day. I want to compile static binary of bird and birdc. I should made little router with a few disk space on an CompactFlash. Now I get come systems binaries (most of them is a BusyBox) all about 4M with a kernel. I never tried to load my little system yet but I should install the bird there. Can You help me ?
Hello!
I want to compile static binary of bird and birdc. I should made little router with a few disk space on an CompactFlash. Now I get come systems binaries (most of them is a BusyBox) all about 4M with a kernel. I never tried to load my little system yet but I should install the bird there.
You need to apply the following patch: CVS diff: tools Index: tools/Rules.in =================================================================== RCS file: /akce/projekty/bird/bird/tools/Rules.in,v retrieving revision 1.14 diff -u -r1.14 Rules.in --- tools/Rules.in 9 Jun 2000 06:31:43 -0000 1.14 +++ tools/Rules.in 19 Aug 2004 09:15:06 -0000 @@ -21,7 +21,7 @@ CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@ CFLAGS=$(CPPFLAGS) @CFLAGS@ -LDFLAGS= +LDFLAGS=@LDFLAGS@ LIBS=@LIBS@ CLIENT_LIBS=@CLIENT_LIBS@ CC=@CC@ which fixes a small bug in the build system, then you can use LDFLAGS="-static" ./configure and `make' should produce static binaries. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "C++: an octopus made by nailing extra legs onto a dog." -- Steve Taylor
participants (2)
-
Martin Mares -
Zharovtsev, Anton