On Wed Jan 02 10:18:49 2008, doughera wrote: > In order to get pbc_to_exe to work with the Solaris linker, I had to move > the libraries to the end of the link line. That's not surprising -- > traditional Unix linkers process items in the link line in order. At the > point where libparrot.a is mentioned, no parrot objects have been listed > on the command line yet, so libparrot isn't needed at all. > This patch re-orders the command line to mention parrot_config.o first > before mentioning libparrot. (I also put the LINKFLAGS before the > libraries, in case some of them were needed to help actually locate the > libraries.) > > --- parrot-current/config/gen/makefiles/root.in Wed Jan 2 08:59:40 2008 > +++ parrot-andy/config/gen/makefiles/root.in Wed Jan 2 13:13:12 2008 > @@ -767,8 +767,8 @@ > pbc_to_exe.pir : $(PARROT) tools/dev/pbc_to_exe_gen.pl > $(PERL) tools/dev/pbc_to_exe_gen.pl \ > "$(BUILD_DIR)/CFLAGS $(CC) \"\" $(CFLAGS) -I$(BUILD_DIR)/include \ > - @rpath_blib@ $(ALL_PARROT_LIBS) $(LINKFLAGS) \ > - $(BUILD_DIR)/src/parrot_config$(O)" \ > + $(BUILD_DIR)/src/parrot_config$(O) \ > + $(LINKFLAGS) @rpath_blib@ $(ALL_PARROT_LIBS)" \ > > pbc_to_exe.pir > > pbc_to_exe : pbc_to_exe.pir >
This patch works on osx86.