in reply to Can 32-bit and 64-bit modules coexist in a working installation?
If the former, then you could write your Makefile.PL to detect the bit-width of perl and set the appropriate make flags, so that one distribution can be installed in both perls. You can't really share the resulting directory between multiple versions of Perl because the installer tools like 'cpanm' will only install the 32 *or* 64 bit versions of all your dependencies. When the user switches perl versions, they need to start from an empty module include path and re-install things as needed.
If the latter, and you're distributing binaries (which presumes you know the exact version of Strawberry for both bit-widths of perl your customers are running) then yes you could make a 32-bit build and a 64-bit build that use different directory names for the Tk .dll files, and just merge the trees together before you ship it to the customer. This would save a lot of redundant pure-perl source files from getting installed.
If you run into trouble, the simplest solution would be to just ship a complete 32-bit and complete 64-bit module tree, and write a front-end script that chooses which path to add to @INC based on which perl ran it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can 32-bit and 64-bit modules coexist in a working installation?
by hexcoder (Curate) on Nov 28, 2023 at 08:57 UTC | |
by NERDVANA (Priest) on Nov 28, 2023 at 09:30 UTC | |
by hexcoder (Curate) on Nov 28, 2023 at 10:15 UTC | |
by swl (Prior) on Nov 28, 2023 at 23:10 UTC |