# New Ticket Created by  Andy Dougherty 
# Please include the string:  [perl #49314]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=49314 >


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

-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to