#495: [TODO] remove hardcoded path from installable pbc_to_exe
---------------------+------------------------------------------------------
 Reporter:  allison  |        Type:  todo   
   Status:  new      |    Priority:  normal 
Milestone:           |   Component:  install
  Version:           |    Severity:  medium 
 Keywords:           |        Lang:         
    Patch:           |    Platform:         
---------------------+------------------------------------------------------

Comment(by gerd):

 The patch changes the files:
 tools/build/parrot_config_c.pl, tools/dev/pbc_to_exe.pir and
 config/gen/makefiles/root.in

 to rebuild libparrot.so to adding src/parrot_config.o.

 So an installed pbc_to_exe only need his libparrot for linking. I tested
 it under Fedora 11.
 The output is:

 [gz...@hilton t_prog]$ /home/gz016/parrot-
 sources/test/installed/bin/pbc_to_exe hello.pbc
 gcc -o hello.o
 ...
 gcc -o hello hello.o  -L/home/gz016/parrot-sources/test/build/blib/lib
 -lparrot -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/i386-linux-thread-
 multi/CORE  -L/usr/local/lib -Wl,-E -lresolv -lnsl -ldl -lm -lcrypt -lutil
 -lpthread -lgmp -lreadline   -licuuc -licudata -lpthread -lm
 Linked: hello
 [gz...@hilton t_prog]$

 So an installed pbc_to_exe from an package should work for building
 languages. Perhaps I have time to try this tomorrow.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/495#comment:10>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to