2012/6/30 Steven Williams prodigiouslogic@gmail.com:
I had a quick and probably dumb question, where in 'make' can I change the parameters so flashrom will compile as a static or stand alone binary? I found an old email where Gianluigi Tiesi says(http://www.mail-archive.com/flashrom@flashrom.org/msg05104.html) to add -static to the end of the cc list in his example but I cannot find anything that resembles it in the current make file. I looked at the instructions for the DOS compile but I was not sure if I needed to use this method and if I could even add all the lib headers required to run flashrom. I am trying to run flashrom on a thin client so I can install an updated version of Linux. Right now they only run a custom Linux build that uses a 2.4 kernel and I would like to have the system open to run an updated kernel and software. I do believe a bootstrap or lilo configuration is in place but I will not know for sure to modify it until I have the ability to read and write to the bios. It would be great if this program was more standalone centric since a full blown os is not always available.
So some pointers or advice would be awesome, thanks in advance!
I'm using this and it works fine.
--- Makefile.orig 2012-01-13 09:19:59.388190891 -0200 +++ Makefile 2012-01-13 09:21:49.489193337 -0200 @@ -531 +531 @@ - $(CC) $(LDFLAGS) -o $(PROGRAM)$(EXEC_SUFFIX) $(OBJS) $(FEATURE_LIBS) $(LIBS) + $(CC) $(LDFLAGS) -o $(PROGRAM)$(EXEC_SUFFIX) $(OBJS) $(FEATURE_LIBS) $(LIBS) -lz -static
You'll need static libraries to link against. On Fedora they are in the following packages: glibc-static, zlib-static, pciutils-devel-static.
Regards,
Marcos