Making Make

jmcnamara on 2003-06-12T22:11:43

Today I built GNU make on a system without make.

I then tried, but failed, to build ar without ar.

Is it pride or folly that prevents me from installing binaries.


Why not...

runrig on 2003-06-12T23:19:29

Install the binary and then build another binary from the source? Or does that make you think too much about chickens and eggs :-)

try cat

zengargoyle on 2003-06-17T00:27:23

if the ar is doing something simple like just joining a bunch of .o files into a .a file (or another .o file) you can try replaceing it with cat.

$ ar -f foo.a foo_math.o foo_string.o foo_yadda.o
$ cat foo_math.o foo_string.o foo_yadda.o >foo.a

this may or may not work for you. i know you could do this (can't believe i'm saying this) in AmigaOS. and i'm pretty sure i've seen something like this in some configure scripts for *nix systems. a simple library file (created with ar) is little more than the .o files joined together.