No, addoldvers is never true. S_init_perllib has many calls to incpush like
#ifdef PERL_VENDORLIB_EXP # if defined(WIN32) /* this picks up vendorarch as well */ s = win32_get_vendorlib(PERL_FS_VERSION, &len); if (s) incpush_use_sep(s, len, INCPUSH_ADD_SUB_DIRS|INCPUSH_CAN_RELOC +ATE); # else S_incpush_use_sep(aTHX_ STR_WITH_LEN(PERL_VENDORLIB_EXP), INCPUSH_CAN_RELOCATE); # endif #endif
For some reason addoldvers is never true.

update: This is my latest try, it didn't work

perl -pi.orig -e " s!^d_inc_version_list=.*$!d_inc_version_list='defin +e'! " win32/config.gc perl -pi.orig -e " s!^inc_version_list=.*$!inc_version_list='5.10.1 5. +10.0'! " win32/config.gc perl -pi.orig -e " s!^inc_version_list_init=.*$!inc_version_list_init= +'\x225.10.1\x22, \x225.10.0\x22, 0'! " win32/config.gc perl -pi.orig -e " s!^.*#define PERL_INC_VERSION_LIST.*$!#define PERL_ +INC_VERSION_LIST \x225.10.1\x22, \x225.10.0\x22, 0! " win32/config_H. +gc perl -pi.orig -e " s!^#INST_VER!INST_VER! " win32/makefile.mk perl -pi.orig -e " s!^#INST_ARCH!INST_ARCH! " win32/makefile.mk perl -pi.orig -e " s!^#USE_SITECUST!USE_SITECUST! " win32/makefile.mk perl -pi.orig -e " s!^(LIBC\s+=\s+-lmsvcrt)!#$1! " win32/makefile.mk @rem @echo for 5.11.x perl -pi.orig -e " !/#define/ and !/INCPUSH_ADD_OLD_VERS/ and s!INCPUS +H_CAN_RELOCATE!INCPUSH_CAN_RELOCATE|INCPUSH_ADD_OLD_VERS ! " perl.c @rem @echo for 5.10.x perl -pi.orig -e " !/#define/ and s!incpush\(\s*(\w+)\s*,\s*(TRUE|FALS +E)\s*,\s*(TRUE|FALSE)\s*,\s*(TRUE|FALSE)\s*,\s*(TRUE|FALSE)\s*\);!inc +push($1,$2,$3,TRUE,$4);! " perl.c del *.orig del win32\*.orig cd win32 dmake -f makefile.mk install

In reply to Re^7: "versioned" builds of Win32 perl by Anonymous Monk
in thread "versioned" builds of Win32 perl by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.