--buildspec will go away (RE: what is sub-makefile and when it is used?)

2018-06-27 Thread Konovalov, Vadim
Tldr: subj

Longer explanation is this.

m-kay,

Makefile.PL is now greatly improved and a bit reworked,
Also "perl Makefile.PL --help" is introduced and adviced in README

--buildspec seems to me too much internal-specific; 

Actually, looking into tclConfig.sh and then choosing for linker among these 4 
variables:
 TCL_LIB_SPEC
TCL_BUILD_LIB_SPEC
TCL_STUB_LIB_SPEC
TCL_BUILD_STUB_LIB_SPEC


# String to pass to linker to pick up the Tcl library from its build directory.
TCL_BUILD_LIB_SPEC=''
# String to pass to linker to pick up the Tcl library from its installed 
directory.
TCL_LIB_SPEC='C:\apps\tcl-866-as86\lib\tcl86t.lib'
# String to pass to linker to pick up the Tcl stub library from its build 
directory.
TCL_BUILD_STUB_LIB_SPEC='-L.\Release_VC13 tclstub86.lib'
# String to pass to linker to pick up the Tcl stub library from its installed 
directory.
TCL_STUB_LIB_SPEC='-LC:\apps\tcl-866-as86\lib tclstub86.lib'

Is it helpful inside Makefile.PL without digging into tclConfig.sh

NO

Will go away?

YES

If anyone wants using it - no-one stops him from using "expert option" 
--library=... --innclude=... which is here to serve all the needs


Ok, next move - move README to README.md

Thanks for listening :)

-Original Message-
From: Konovalov, Vadim [mailto:vadim.konova...@dell.com] 
Sent: Sunday, June 24, 2018 11:05 PM
To: tcltk@perl.org
Subject: what is sub-makefile and when it is used?

Hi,

In Tcl, Makefile.PL reads:

# This is to allow propagation of this value to sub-Makefile.PLs
$ENV{'TCLSH_PROG'} = $tclsh;

Going to get rid of this;

Does Tkx somehow depend on this?

Same thing for these lines in Tcl::Tk's Makefile.PL :

# Allow the tclsh prog to be provided by env var or arg if ($tclshArg) {
$tclsh = $tclshArg;
} elsif (defined($ENV{'TCLSH_PROG'})) {
$tclsh = $ENV{'TCLSH_PROG'};
}

Going to get rid of this as well; who use this?

TIA,
Vadim


what is sub-makefile and when it is used?

2018-06-25 Thread Konovalov, Vadim
Hi,

In Tcl, Makefile.PL reads:

# This is to allow propagation of this value to sub-Makefile.PLs
$ENV{'TCLSH_PROG'} = $tclsh;

Going to get rid of this;

Does Tkx somehow depend on this?

Same thing for these lines in Tcl::Tk's Makefile.PL :

# Allow the tclsh prog to be provided by env var or arg
if ($tclshArg) {
$tclsh = $tclshArg;
} elsif (defined($ENV{'TCLSH_PROG'})) {
$tclsh = $ENV{'TCLSH_PROG'};
}

Going to get rid of this as well; who use this?

TIA, 
Vadim