#495: [TODO] remove hardcoded path from installable pbc_to_exe
---------------------+------------------------------------------------------
Reporter: allison | Owner:
Type: todo | Status: new
Priority: normal | Milestone:
Component: none | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Comment(by gerd):
pbc_to_exe access src/parrot_config.o from the build directory. My
suggestion is to rebuilding the Parrot library with the object
parrot_config included aber building miniparrot, config.fpmc and the
object parrot_config. So pbc_to_exe do not need explicit to link with
parrot_config.
Here is an example that extends the target: $(SRC_DIR)/parrot_config$(O)
of the Makefile to rebuild the Parrot shared library after generating
parrot_config.o
$(SRC_DIR)/parrot_config$(O) : $(SRC_DIR)/parrot_config.c $(O_FILES)
$(CC) $(CFLAGS) -I$(@D) -o $(SRC_DIR)/parrot_config$(O) -c
$(SRC_DIR)/parrot_config.c
@echo "Rebuild the Parrot Library"
$(MKPATH) blib/lib
$(LD) $(LD_SHARE_FLAGS) $(LDFLAGS) -o $(LIBPARROT_SHARED)
-Wl,-soname=libparrot$(SHARE_EXT).$(SOVERSION) \
$(SRC_DIR)/parrot_config$(O) $(O_FILES) $(C_LIBS)
$(ICU_SHARED)
( cd blib/lib ; ln -sf libparrot$(SHARE_EXT).$(SOVERSION)
libparrot$(SHARE_EXT) )
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/495#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets