diff options
author | James E Keenan <jkeenan@cpan.org> | 2021-02-17 13:31:45 +0000 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2021-02-18 07:45:33 -0500 |
commit | b52f3fcbb1c0ef575b52e41a2baec4a2542b96da (patch) | |
tree | 249a81d5c68554ae45d5b81f48082f80a6346697 /INSTALL | |
parent | 8c165c7a4d2c8cb843ef68eb96315d9ea3393cca (diff) | |
download | perl-b52f3fcbb1c0ef575b52e41a2baec4a2542b96da.tar.gz |
Show how to quote spaces in Configure invocations
For: https://github.com/Perl/perl5/issues/18573
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -132,7 +132,31 @@ Configure supports a number of useful options. Run Configure -h -to get a listing. See the F<Porting/Glossary> file for a complete list of +to get a listing. + +Many Configure switches are expressed as C<key=value> pairs, for example: + + -Dcc=clang + +Sometimes the value to be supplied for a switch is a string which contains +spaces. In that case, the value needs to be quoted so as to delimit that +"shell word" from any following switch. Example: + + sh ./Configure -des \ + -Doptimize="-O2 -pipe -fstack-protector -fno-strict-aliasing" \ + -Dusedevel + +Once Configure has run, you will be able to access configuration data via +entries in the file F<config.sh>. + + config_arg0='./Configure' + config_args='-des -Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing -Dusedevel' + config_argc=3 + config_arg1='-des' + config_arg2='-Doptimize=-O2 -pipe -fstack-protector -fno-strict-aliasing' + config_arg3='-Dusedevel' + +See the F<Porting/Glossary> file for a complete list of Configure variables you can set and their definitions. =over 4 |