Ticket #495: patch

File patch, 2.5 KB (added by gerd, 13 years ago)

generated with "diff -u" it patches three files

  • tools/build/parrot_config_c.pl

    old new  
    9292print << "EOF"; 
    9393}; /* parrot_config */ 
    9494 
     95PARROT_EXPORT 
    9596void 
    9697Parrot_set_config_hash(void) 
    9798{ 
  • tools/dev/pbc_to_exe.pir

    old new  
    567567 
    568568    $P0 = '_config'() 
    569569    .local string cc, link, link_dynamic, linkflags, ld_out, libparrot, libs, o 
    570     .local string rpath, osname, build_dir, slash, icushared 
     570    .local string rpath, osname, build_dir, slash, icushared, installed 
    571571    cc           = $P0['cc'] 
    572572    link         = $P0['link'] 
    573573    link_dynamic = $P0['link_dynamic'] 
     
    581581    build_dir    = $P0['build_dir'] 
    582582    slash        = $P0['slash'] 
    583583    icushared    = $P0['icu_shared'] 
     584    installed    = $P0['installed'] 
    584585 
    585586    .local string config, pathquote, exeprefix 
    586587    exeprefix = substr exefile, 0, 12 
     
    613614    link .= extra_obj 
    614615    link .= pathquote 
    615616  skip_extra_obj: 
     617    if installed == '1' goto config_object_is_in_library 
    616618    link .= ' ' 
    617619    link .= config 
     620  config_object_is_in_library: 
    618621    link .= ' ' 
    619622    link .= rpath 
    620623    link .= ' ' 
  • config/gen/makefiles/root.in

    old new  
    896896#IF(win32):     if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2 
    897897#IF(libparrot_shared_alias):    ( cd @blib_dir@ ; ln -sf @libparrot_shared@ @libparrot_shared_alias@ ) 
    898898 
     899rebuild : $(O_FILES) $(SRC_DIR)/install_config$(O) 
     900        @echo Rebuild the Parrot library with including $(SRC_DIR)/install_config$(O)  
     901        $(MKPATH) @blib_dir@ 
     902        $(LD) $(LD_SHARE_FLAGS) $(LDFLAGS) @ld_out@$(LIBPARROT_SHARED) @libparrot_soname@ \ 
     903#IF(cygwin):            -Wl,--out-implib=libparrot.dll.a \ 
     904#IF(win32 and cc==gcc):         -Wl,--out-implib=libparrot.lib \ 
     905                $(O_FILES) $(SRC_DIR)/install_config$(O) $(C_LIBS) $(ICU_SHARED) 
     906#IF(win32):     if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2 
     907#IF(libparrot_shared_alias):    ( cd @blib_dir@ ; ln -sf @libparrot_shared@ @libparrot_shared_alias@ ) 
     908 
    899909 
    900910$(INSTALLABLECONFIG) : $(SRC_DIR)/install_config$(O) $(PARROT_CONFIG) $(PBC_TO_EXE) 
    901911        $(PARROT) -o parrot_config.pbc tools/util/parrot-config.pir 
    902912        $(PBC_TO_EXE) parrot_config.pbc --install 
    903913 
    904 $(INSTALLABLEPBCTOEXE) : $(PBC_TO_EXE) 
     914$(INSTALLABLEPBCTOEXE) : $(PBC_TO_EXE) rebuild 
    905915        $(PBC_TO_EXE) pbc_to_exe.pbc --install 
    906916 
    907917#