Adriaan van Os wrote:
Thanks for the patches. With some offsets, the diffs apply all.
When building gpc-20030830 with gcc-3.4, I get the following error:
<snip>
"/Users/adriaan/gnu/gcc-3.4-stuff/gpc-3.4.0/gcc/p/utils/binobj.pas" /usr/bin/ld: archive: ../.././libgpc.a has no table of contents, add one with ranlib(1) (can't load from it) collect2: ld returned 1 exit status make[2]: *** [binobj] Error 1 make[1]: *** [pascal.utils] Error 2 make: *** [all-gcc] Error 2
Try the following patch (if you want just remake you have to remove libgpc.a):
--- gpc-20030830.pp/p/rts/Makefile.in 2004-04-23 18:30:16.000000000 +0200 +++ gpc-20030830/p/rts/Makefile.in 2004-04-23 18:28:56.000000000 +0200 @@ -170,7 +170,7 @@ $(GPCLIB): $(OBJS) -rm -f $(GPCLIB) $(AR) $(AR_FLAGS) $(GPCLIB) $(OBJS) - -if $(RANLIB_TEST); then $(RANLIB) $(GPCLIB); else true; fi + -$(RANLIB) $(GPCLIB)
# That's a way to do an `if' that even a stupid make understands ... sharedlib. sharedlib.no sharedlib.@with_shared$(DUMMY)@: